return redirect()->route('route_name');
//with data
return redirect()->route('route_name', ['key' => $value]);
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!');
});
//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]);
return redirect()->route('routeName', ['dataParameter' => 'if exist']);