GuardContract
abstract class GuardContract (View source)
Properties
protected string | $guard | The define guard |
Methods
mixed
id()
Check the user id
bool
check()
Check if user is authenticated
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 authenticated
string
getName()
Get the guard name
guard(string $guard = null)
Load the guard
Details
abstract mixed
id()
Check the user id
abstract bool
check()
Check if user is authenticated
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 authenticated
string
getName()
Get the guard name
GuardContract
guard(string $guard = null)
Load the guard