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}