コード例 #1
0
ファイル: AuthenticatesUsers.php プロジェクト: osvaldino/chat
 /**
  * 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 : '/');
 }
コード例 #2
0
ファイル: UsersController.php プロジェクト: osvaldino/chat
 public function online(Session $session)
 {
     return $session->online();
 }