StatefulGuard
interface StatefulGuard implements Guard (View source)
Methods
bool
attempt(array $credentials = [], bool $remember = false)
Attempt to authenticate a user using the given credentials.
bool
once(array $credentials = [])
Log a user into the application without sessions or cookies.
void
Authenticatable|false
loginUsingId(mixed $id, bool $remember = false)
Log the given user ID into the application.
Authenticatable|false
onceUsingId(mixed $id)
Log the given user ID into the application without sessions or cookies.
bool
viaRemember()
Determine if the user was authenticated via "remember me" cookie.
void
logout()
Log the user out of the application.
Details
bool
attempt(array $credentials = [], bool $remember = false)
Attempt to authenticate a user using the given credentials.
Authenticatable|false
loginUsingId(mixed $id, bool $remember = false)
Log the given user ID into the application.
Authenticatable|false
onceUsingId(mixed $id)
Log the given user ID into the application without sessions or cookies.