标签: php laravel laravel-5 laravel-routing
是否可以在Laravel 5中获取给定URL的路由名称? Route::currentRouteName()只是获取CURRENT网址的路由名称。相反,我如何获得给定网址的路由名称?像Route::getRouteName('http://example.com/users')?
Route::currentRouteName()
Route::getRouteName('http://example.com/users')