redirect route with parameters laravel

Solutions on MaxInterview for redirect route with parameters laravel by the best coders in the world

showing results for - "redirect route with parameters laravel"
Marco
23 Nov 2017
1Route::redirect('/here', '/there');
2or
3return redirect(route('register'));
Ana
20 Feb 2016
1return redirect()->route('login');
Yasser
07 May 2018
1Route::post('/user/profile', function () {
2    // Update the user's profile...
3
4    return redirect('/dashboard')->with('status', 'Profile updated!');
5});
Cecilia
11 Mar 2020
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', [$user]);
Samuel
25 Jul 2017
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', ['id' => 1]);
Indira
24 Oct 2019
1//Send the parameter to route
2Route::get('url/{identifier}', 'Controller@method')->name('routeNameFromWeb'); 
3
4return redirect(route('routeNameFromWeb.php', ['identifier' => 'value']));
similar questions
queries leading to this page
redirect route with parameters laravel