web route laravel 8 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');