laravel get current route name in controller code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: laravel get current action name
echo Route::getCurrentRoute()->getActionName();
Route::currentRouteName()
echo Route::getCurrentRoute()->getActionName();