[Laravel] get controller name and action name in view

get controller name:

{{ substr(class_basename(Route::currentRouteAction()), 0, (strpos(class_basename(Route::currentRouteAction()), '@') -0) ) }}

get action name:

{{ substr(class_basename(Route::currentRouteAction()), (strpos(class_basename(Route::currentRouteAction()), '@') + 1)) }}