$email, 'password' => $password])) { return redirect()->intended('/admin'); } return redirect('/login')->withErrors(['email' => 'The credentials you entered did not match our records. Try again?',]); } public function logout() { Auth::logout(); } }