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")); }
/** * {@inheritDoc} */ public function logout() { return Sentinel::logout(); }
public function logout() { Sentinel::logout(); return Redirect::to('/')->send(); }
/** * Log the user out of the application. * * @return \Illuminate\Http\Response */ public function getLogout() { Sentinel::logout(); return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/'); }
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"); }
/** * 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); }
/** * Завершение текущего сеанса пользователя */ public function getLogout() { Sentinel::logout(); return redirect()->action('UserController@getSignin'); }
/** * 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'); }