Answers for "authentication redirect url in laravel"

C#
3

laravel route redirect

Route::redirect('/here', '/there');
or
return redirect(route('register'));
Posted by: Guest on July-17-2021
0

redirect to attempting url after login laravel

The intended method on the redirector will redirect the user to the URL they
  were attempting to access before being intercepted by the authentication 
  middleware. A fallback URI may be given to this method in case the intended 
  destination is not available.
  
if (Auth::attempt($credentials)) {
  // Authentication passed...
  return redirect()->intended('dashboard');
}
Posted by: Guest on January-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language