Skip to content

Commit

Permalink
Merge branch 'auth-already-authenticated' of https://github.com/mpyw-…
Browse files Browse the repository at this point in the history
…forks/framework into mpyw-forks-auth-already-authenticated
  • Loading branch information
taylorotwell committed Jun 9, 2018
2 parents 5d88424 + f6972a5 commit 8d349b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions GuardHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ public function authenticate()
throw new AuthenticationException;
}

/**
* Determine if the guard has the current user without triggering side effects.
*
* @return bool
*/
public function hasUser()
{
return ! is_null($this->user);
}

/**
* Determine if the current user is authenticated.
*
Expand Down

0 comments on commit 8d349b3

Please sign in to comment.