Is it possible to get the route name of a given URL in Laravel 5? The Route::currentRouteName()
is just getting the route name of the CURRENT url. Instead, how can I get the route name of a given url? Something like Route::getRouteName('http://example.com/users')
?
Asked
Active
Viewed 71 times
0

basagabi
- 4,900
- 6
- 38
- 84
-
I think this will be helpful to you :) http://stackoverflow.com/questions/24582922/laravel-get-route-name-from-given-url – Alupotha Mar 16 '15 at 15:38
-
1above comment is also duplicate :) :p – Alupotha Mar 16 '15 at 15:42
-
@Alupotha These comments (*"Possible duplicate: [url]"*) are automatically added when someone flags a question as duplicate – lukasgeiter Mar 16 '15 at 16:03