Skip to content

Commit

Permalink
Merge branch '9.x'
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	src/Illuminate/Foundation/Application.php
#	src/Illuminate/Support/Facades/Notification.php
#	src/Illuminate/Support/Facades/Queue.php
  • Loading branch information
driesvints committed Dec 8, 2022
2 parents a3935cd + 9a0c98d commit e3acde2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 12 additions & 0 deletions GuardHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit e3acde2

Please sign in to comment.