laravel get action method code example
Example 1: laravel get current action name
echo Route::getCurrentRoute()->getActionName();
Example 2: laravel make:action
composer require lorisleiva/laravel-actions
echo Route::getCurrentRoute()->getActionName();
composer require lorisleiva/laravel-actions