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|null
id()
Get the ID for the currently authenticated user.
bool
validate(array $credentials = [])
Validate a user's credentials.
void
Details
at line 12
bool
check()
Determine if the current user is authenticated.
at line 19
bool
guest()
Determine if the current user is a guest.
at line 26
Authenticatable|null
user()
Get the currently authenticated user.
at line 33
int|null
id()
Get the ID for the currently authenticated user.
at line 41
bool
validate(array $credentials = [])
Validate a user's credentials.
at line 49
void
setUser(Authenticatable $user)
Set the current user.