/** * Log the user out of the application. * * @param Session $session * @return \Illuminate\Http\Response */ public function getLogout(Session $session) { event(new UserWasLoggedOut($session->getSession())); $session->setOffline(); Auth::logout(); return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/'); }
public function online(Session $session) { return $session->online(); }