how to name route and middleware laravel code example
Example 1: laraval routing
Route::redirect('/here', '/there', 301);
Example 2: laravel route
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');
Route::redirect('/here', '/there', 301);
Route::get('user/profile', [UserProfileController::class, 'show'])->name('profile');