Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Adds request()->routeIs(...) support #93

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

nunomaduro
Copy link
Member

This pull request fixes #89, and adds support for the following two scenarios:

  1. Route::currentRouteName returns the correct Folio's route name when exists, or laravel-folio otherwise.
  2. Also, when using request->isRoute(...) you may know provide the folio route name.

@nunomaduro nunomaduro changed the title Adds request()->routeIs(...) support [1.x] Adds request()->routeIs(...) support Aug 23, 2023
@taylorotwell taylorotwell merged commit 6af158d into master Aug 23, 2023
@taylorotwell taylorotwell deleted the feat/request-route-is branch August 23, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Route::currentRouteName() for Laravel Folio named route returns 'laravel-folio'
2 participants