Exemplo n.º 1
0
 /**
  * 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 : '/');
 }
Exemplo n.º 2
0
 public function online(Session $session)
 {
     return $session->online();
 }