Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function redirectTo()
- {
- return url()->previous();
- }
- public function authenticate()
- {
- if (Auth::attempt(['email' => $email, 'password' => $password])) {
- // Authentication passed...
- return redirect()->back();
- }
- }
Add Comment
Please, Sign In to add comment