Guest User

Untitled

a guest
Jan 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. protected function redirectTo()
  2. {
  3. return url()->previous();
  4. }
  5.  
  6. public function authenticate()
  7. {
  8. if (Auth::attempt(['email' => $email, 'password' => $password])) {
  9. // Authentication passed...
  10. return redirect()->back();
  11. }
  12. }
Add Comment
Please, Sign In to add comment