get route name from url laravel code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: current url route laravel
\Route::current()
############### OR ####################
$request->getRequestUri()
Example 3: laravel get current route name
Route::getCurrentRoute()->getActionName();