Laravel obtient le nom de l'itinéraire actuel
Route::currentRouteName()
Beautiful Bird
Route::currentRouteName()
request()->route()->getName()
get URL:
{{ Request::url() }} // http://localhost/path
get path:
{{ Request::path() }} // path
<p> Path: {{ Request::path() }} </p>
Route::getCurrentRoute()->getActionName();
$route = Route::current();
$name = Route::currentRouteName();
$action = Route::currentRouteAction();