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
login(Authentication $user)

Logout

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

Valeur de retour

mixed

abstract bool check()

Check if user is authenticate

Valeur de retour

bool

abstract bool guest()

Check if user is guest

Valeur de retour

bool

abstract bool logout()

Logout

Valeur de retour

bool

abstract bool login(Authentication $user)

Logout

Paramètres

Authentication $user

Valeur de retour

bool

abstract Authentication|null user()

Get authenticated user

Valeur de retour

Authentication|null

abstract bool attempts(array $credentials)

Check if user is authenticate

Paramètres

array $credentials

Valeur de retour

bool

string getName()

Get the guard name

Valeur de retour

string

GuardContract guard(string $guard = null)

Load the a guard

Paramètres

string $guard

Valeur de retour

GuardContract