diff --git a/AuthManager.php b/AuthManager.php index 18bc6837..e95da5ec 100755 --- a/AuthManager.php +++ b/AuthManager.php @@ -6,6 +6,10 @@ use Illuminate\Contracts\Auth\Factory as FactoryContract; use InvalidArgumentException; +/** + * @mixin \Illuminate\Contracts\Auth\Guard + * @mixin \Illuminate\Contracts\Auth\StatefulGuard + */ class AuthManager implements FactoryContract { use CreatesUserProviders; diff --git a/GuardHelpers.php b/GuardHelpers.php index aec701e5..00b7ed34 100644 --- a/GuardHelpers.php +++ b/GuardHelpers.php @@ -93,6 +93,18 @@ public function setUser(AuthenticatableContract $user) $this->user = $user; } + /** + * Forget the current user. + * + * @return $this + */ + public function forgetUser() + { + $this->user = null; + + return $this; + } + /** * Get the user provider used by the guard. *