Answers for "laravel route get route name"

PHP
4

laravel get current route name

Route::currentRouteName()
Posted by: Guest on July-24-2020
1

laravel route is current route

Route::currentRouteName()
Route::getCurrentRoute()->getPath();
Request::route()->getName()
Route::currentRouteName(); //use IlluminateSupportFacadesRoute;
Route::getCurrentRoute()->getActionName();
$uri = $request->path();
Posted by: Guest on December-05-2021

Browse Popular Code Answers by Language