/** * Logout * * If you're actually logged in, it'll log you out and show a message. * Else it will silently redirect you to the login form. * * @return \Illuminate\Http\RedirectResponse */ public function getLogout() { if ($this->sentry->check()) { $this->sentry->logout(); $this->session->flash('success', 'You have successfully logged out.'); } return $this->redirect->route('larapress.home.login.get'); }
/** * Logs the current user out. * * @return void * @static */ public static function logout() { \Cartalyst\Sentry\Sentry::logout(); }
public function logout() { $this->getUser()->recordLogout(); parent::logout(); }
/** * Logs the current user out. * * @author ZZK * @link http://verecom.com * * @return void */ public function logout() { $user = $this->sentry->getUser(); $this->sentry->logout(); $this->event->fire('users.logout', array($user)); }