/** * Display Generator Page */ public function logout() { $this->auth->logout(); return redirect()->route('login'); }
/** * Log the user out of the application. * * @param \Illuminate\Http\Request $request * @return void * * @throws \Illuminate\Auth\AuthenticationException */ protected function logout($request) { $this->auth->logout(); $request->session()->flush(); throw new AuthenticationException(); }