Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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');
}
 
PREVIOUS NEXT
Tagged: #redirect #attempting #url #login #laravel
ADD COMMENT
Topic
Name
4+2 =