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