Guard
interface Guard
Methods
bool
check()
Determine if the current user is authenticated.
bool
guest()
Determine if the current user is a guest.
Authenticatable|null
user()
Get the currently authenticated user.
int|string|null
id()
Get the ID for the currently authenticated user.
bool
validate(array $credentials = [])
Validate a user's credentials.
bool
hasUser()
Determine if the guard has a user instance.
Details
at line 12
bool
check()
Determine if the current user is authenticated.
at line 17
bool
guest()
Determine if the current user is a guest.
at line 22
Authenticatable|null
user()
Get the currently authenticated user.
at line 27
int|string|null
id()
Get the ID for the currently authenticated user.
at line 32
bool
validate(array $credentials = [])
Validate a user's credentials.
at line 37
bool
hasUser()
Determine if the guard has a user instance.
at line 42
Guard
setUser(Authenticatable $user)
Set the current user.