$request->route()->getActionMethod();
request()->route()->getActionMethod();
//On blade:
{{ request()->route()->getActionMethod() }}
<?php
namespace AppHttpControllers;
use IlluminateHttpRequest;
use IlluminateSupportFacadesRoute;
class DemoController extends Controller
{
public function demoAction()
{
$action = Route::currentRouteAction(); // string
// return text after @
// Before: AppHttpControllersDemoController@demoAction
return substr($action, strpos($action, '@') + 1);
// Output: demoAction
}
}