Redirection de la route Laravel
Route::redirect('/here', '/there');
or
return redirect(route('register'));
Mohamad
Route::redirect('/here', '/there');
or
return redirect(route('register'));
return redirect()->route('login');
Route::post('/user/profile', function () {
// Update the user's profile...
return redirect('/dashboard')->with('status', 'Profile updated!');
});
// For a route with the following URI: profile/{id}
return redirect()->route('profile', [$user]);
//Send the parameter to route
Route::get('url/{identifier}', 'Controller@method')->name('routeNameFromWeb');
return redirect(route('routeNameFromWeb.php', ['identifier' => 'value']));
return redirect()->route('route.name', [$param]);