Laravel How to get current route name

Reading time: less than 1 minute

Laravel How to get current route name

//get path
Route::getCurrentRoute()->getPath();
//get name
Route::getCurrentRoute()->getActionName();