redirect page in laravel with route name code example
Example 1: laravel return redirect to named route
return redirect()->route('login');
Example 2: Redirect::route('profile') and with() in laravel
// For a route with the following URI: profile/{id}
return redirect()->route('profile', [$user]);