本文整理匯總了PHP中Illuminate\Auth\AuthManager::logout方法的典型用法代碼示例。如果您正苦於以下問題:PHP AuthManager::logout方法的具體用法?PHP AuthManager::logout怎麽用?PHP AuthManager::logout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Auth\AuthManager
的用法示例。
在下文中一共展示了AuthManager::logout方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: logout
public function logout()
{
if (phpCAS::isSessionAuthenticated()) {
if ($this->auth->check()) {
$this->auth->logout();
}
Session::flush();
phpCAS::logout();
exit;
}
}
示例2: logout
/**
* This method is used to logout from CAS
*
* @param string $service a URL that will be transmitted to the CAS server to do a redirect after logout
*
* @return none
*/
public function logout($service = "")
{
if (phpCAS::isSessionAuthenticated()) {
if ($this->auth->check()) {
$this->auth->logout();
}
$this->session->flush();
if ($service != "") {
phpCAS::logoutWithRedirectService($service);
} else {
phpCAS::logout();
}
exit;
}
}
示例3: destroy
/**
* Log out the user.
*
* @return \Response
*/
public function destroy()
{
$this->auth->logout();
return redirect('/');
}
示例4: logout
/**
* @return mixed
*/
public function logout()
{
return $this->auth->logout();
}
示例5: getLogout
/**
* Log the user out
*
* @return mixed
*/
public function getLogout()
{
$this->auth->logout();
return View::make('auth.logout');
}
示例6: handle
/**
* Handle the command.
*
* @param $command
*/
public function handle($command)
{
return $this->authenticate->logout();
}
示例7: getLogout
/**
* Logout user
*
* @return mixed
*/
public function getLogout()
{
$this->auth->logout();
return $this->redirectRoute('admin.auth.get_login')->with('success_message', $this->trans->get('messages.auth.success_logout'));
}
示例8: logout
public function logout()
{
$this->auth->logout();
return $this->redirector->back();
}
示例9: logout
/**
* Log out the current user.
*
* @return void
*/
public function logout()
{
$this->auth->logout();
}