laravel route Accessing The Current Route

85

laravel get current route name -

Route::currentRouteName()

get current route in blade laravel -

<p> Path: {{ Request::path() }} </p>

laravel route Accessing The Current Route -

$route = Route::current();

$name = Route::currentRouteName();

$action = Route::currentRouteAction();

Comments

Submit
0 Comments