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 14
bool
check()
Determine if the current user is authenticated.
in
Guard at line 21
bool
guest()
Determine if the current user is a guest.
in
Guard at line 28
Authenticatable|null
user()
Get the currently authenticated user.
in
Guard at line 35
int|string|null
id()
Get the ID for the currently authenticated user.
in
Guard at line 42
bool
validate(array $credentials = [])
Validate a user's credentials.
in
Guard at line 49
bool
hasUser()
Determine if the guard has a user instance.
in
Guard at line 54
Guard
setUser(Authenticatable $user)
Set the current user.
at line 14
bool
attempt(array $credentials = [], bool $remember = false)
Attempt to authenticate a user using the given credentials.
at line 21
bool
once(array $credentials = [])
Log a user into the application without sessions or cookies.
at line 26
void
login(Authenticatable $user, bool $remember = false)
Log a user into the application.
at line 33
Authenticatable|false
loginUsingId(mixed $id, bool $remember = false)
Log the given user ID into the application.
at line 40
Authenticatable|false
onceUsingId(mixed $id)
Log the given user ID into the application without sessions or cookies.
at line 47
bool
viaRemember()
Determine if the user was authenticated via "remember me" cookie.
at line 52
void
logout()
Log the user out of the application.