Exemplo n.º 1
3
 public function logout()
 {
     App::setLocale(Config::get('app.locale'));
     $user = Sentinel::logout();
     Flash::success("You have been logged out from: " . $user->first_name);
     return redirect(action("HomeController@home"));
 }
Exemplo n.º 2
1
 /**
  * {@inheritDoc}
  */
 public function logout()
 {
     return Sentinel::logout();
 }
Exemplo n.º 3
1
 public function logout()
 {
     Sentinel::logout();
     return Redirect::to('/')->send();
 }
Exemplo n.º 4
1
 /**
  * Log the user out of the application.
  *
  * @return \Illuminate\Http\Response
  */
 public function getLogout()
 {
     Sentinel::logout();
     return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/');
 }
Exemplo n.º 5
1
 public function getLogout()
 {
     Sentinel::logout();
     return redirect()->route('home');
 }
 protected function logout()
 {
     // Destruir todas sessões do usuário logado
     Sentinel::logout(null, true);
     Auth::logout();
     return redirect()->route("home.index");
 }
Exemplo n.º 7
0
 /**
  * Logs the user out.
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function logout()
 {
     Sentinel::logout();
     $message = 'Successfully logged out.';
     return redirect()->route('maintenance.login.index')->withSuccess($message);
 }
Exemplo n.º 8
0
 /**
  * Завершение текущего сеанса пользователя
  */
 public function getLogout()
 {
     Sentinel::logout();
     return redirect()->action('UserController@getSignin');
 }
Exemplo n.º 9
0
 /**
  * Log the user out of the application.
  *
  * @Get("auth/logout")
  *
  * @return Response
  * @author Bertrand Kintanar
  */
 public function getLogout()
 {
     Sentinel::logout();
     return redirect('/');
 }
 /**
  * 注销账号
  * @return \Illuminate\Http\RedirectResponse
  */
 public function logout()
 {
     $current_user = Sentinel::getUser();
     Sentinel::logout($current_user, true);
     return redirect()->route('account_login_get');
 }