-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Reverse routing with Route::controller() #11
Copy link
Copy link
Closed
Description
This may be intentional but I thought I'd bring it up just to double check.
If you use Route::controller() you can't use reverse routing for any of the actions on the controller. I believe this is because UrlGenerator::action() simply compares the _uses option of the route against the action provided. The requirements for a route aren't actually expanded.
A solution would be to convert the requirements into their regular expression equivalents and then compare the actions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.