redirect to attempting url after login laravel

Solutions on MaxInterview for redirect to attempting url after login laravel by the best coders in the world

showing results for - "redirect to attempting url after login laravel"
Alberto
24 Mar 2018
1The intended method on the redirector will redirect the user to the URL they
2  were attempting to access before being intercepted by the authentication 
3  middleware. A fallback URI may be given to this method in case the intended 
4  destination is not available.
5  
6if (Auth::attempt($credentials)) {
7  // Authentication passed...
8  return redirect()->intended('dashboard');
9}