laravel get controller path from route name code example Example: laravel get current route name Route::getCurrentRoute()->getActionName();