get current route laravel 8 code example
Example 1: laravel get current route name
Route::currentRouteName()
Example 2: get current route in blade laravel
<p> Path: {{ Request::path() }} </p>
Example 3: laravel 8 route
Route::get(
'/user/profile',
[UserProfileController::class, 'show']
)->name('profile');