laravel / folio

Page based routing for Laravel.
MIT License
568 stars 46 forks source link

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

Closed nunomaduro closed 1 year ago

nunomaduro commented 1 year ago

This pull request fixes https://github.com/laravel/folio/issues/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.