GuardContract
abstract classe GuardContract (Voir la source)
Propriétés
protected string | $guard | The define guard |
Méthodes
mixed
id()
Check the user id
bool
check()
Check if user is authenticate
bool
guest()
Check if user is guest
bool
logout()
Logout
bool
Authentication|null
user()
Get authenticated user
bool
attempts(array $credentials)
Check if user is authenticate
string
getName()
Get the guard name
guard(string $guard = null)
Load the a guard
Détails
abstract mixed
id()
Check the user id
abstract bool
check()
Check if user is authenticate
abstract bool
guest()
Check if user is guest
abstract bool
logout()
Logout
abstract bool
login(Authentication $user)
Logout
abstract Authentication|null
user()
Get authenticated user
abstract bool
attempts(array $credentials)
Check if user is authenticate
string
getName()
Get the guard name
GuardContract
guard(string $guard = null)
Load the a guard