StatefulGuard
interface StatefulGuard implements Guard
Methods
Attempt to authenticate a user using the given credentials.
Log a user into the application without sessions or cookies.
Log the given user ID into the application.
Log the given user ID into the application without sessions or cookies.
Determine if the user was authenticated via "remember me" cookie.
Log the user out of the application.
Details
in
Guard at line 12
bool
check()
Determine if the current user is authenticated.
in
Guard at line 17
bool
guest()
Determine if the current user is a guest.
in
Guard at line 22
Authenticatable|null
user()
Get the currently authenticated user.
in
Guard at line 27
int|string|null
id()
Get the ID for the currently authenticated user.
in
Guard at line 32
bool
validate(array $credentials = [])
Validate a user's credentials.
in
Guard at line 37
bool
hasUser()
Determine if the guard has a user instance.
in
Guard at line 42
Guard
setUser(Authenticatable $user)
Set the current user.
at line 12
bool
attempt(array $credentials = [], bool $remember = false)
Attempt to authenticate a user using the given credentials.
at line 17
bool
once(array $credentials = [])
Log a user into the application without sessions or cookies.
at line 22
void
login(Authenticatable $user, bool $remember = false)
Log a user into the application.
at line 27
Authenticatable|false
loginUsingId(mixed $id, bool $remember = false)
Log the given user ID into the application.
at line 32
Authenticatable|false
onceUsingId(mixed $id)
Log the given user ID into the application without sessions or cookies.
at line 37
bool
viaRemember()
Determine if the user was authenticated via "remember me" cookie.
at line 42
void
logout()
Log the user out of the application.