laravel 5.8 get current route name code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: laravel 8 route
Route::get(
'/user/profile',
[UserProfileController::class, 'show']
)->name('profile');
Route::currentRouteName()
Route::get(
'/user/profile',
[UserProfileController::class, 'show']
)->name('profile');