1Route::post('/user/profile', function () {
2 // Update the user's profile...
3
4 return redirect('/dashboard')->with('status', 'Profile updated!');
5});
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', [$user]);
1// For a route with the following URI: profile/{id}
2
3return redirect()->route('profile', ['id' => 1]);
1//Send the parameter to route
2Route::get('url/{identifier}', 'Controller@method')->name('routeNameFromWeb');
3
4return redirect(route('routeNameFromWeb.php', ['identifier' => 'value']));