throw $error;
}
- $this->actionLogout();
- $url = '/';
+ $url = $this->loginService->logout();
$id = null;
}
);
}
- $this->actionLogout();
+ $this->loginService->logout();
return $redirect;
}
- /**
- * Do the required actions to log a user out.
- */
- protected function actionLogout()
- {
- auth()->logout();
- session()->invalidate();
- }
-
/**
* Get the metadata for this service provider.
*