GuardHelpers
trait GuardHelpers
These methods are typically the same across all guards.
Properties
protected Authenticatable | $user | The currently authenticated user. |
|
protected UserProvider | $provider | The user provider implementation. |
Methods
authenticate()
Determine if the current user is authenticated.
bool
check()
Determine if the current user is authenticated.
bool
guest()
Determine if the current user is a guest.
int|null
id()
Get the ID for the currently authenticated user.
$this
Details
at line 33
Authenticatable
authenticate()
Determine if the current user is authenticated.
at line 47
bool
check()
Determine if the current user is authenticated.
at line 57
bool
guest()
Determine if the current user is a guest.
at line 67
int|null
id()
Get the ID for the currently authenticated user.
at line 80
$this
setUser(Authenticatable $user)
Set the current user.