classe JwtGuard étends GuardContract (Voir la source)

Traits

Propriétés

protected string $guard

The define guard

depuis  GuardContract

Méthodes

mixed
id()

Get the user id

bool
check()

Check if user is authenticate

bool
guest()

Check if user is guest

bool
logout()

Destruit token

bool
login(Authentication $user)

Make direct login

Authentication|null
user()

Check if user is authenticate

bool
attempts(array $credentials)

Check if user is authenticate

string
getName()

Get the guard name

guard(string $guard = null)

Load the a guard

__construct(array $provider, string $guard)

JwtGuard constructor.

string|null
getToken()

Get the generated token

Détails

mixed id()

Get the user id

Valeur de retour

mixed

bool check()

Check if user is authenticate

Valeur de retour

bool

bool guest()

Check if user is guest

Valeur de retour

bool

bool logout()

Destruit token

Valeur de retour

bool

bool login(Authentication $user)

Make direct login

Paramètres

Authentication $user

Valeur de retour

bool

Authentication|null user()

Check if user is authenticate

Valeur de retour

Authentication|null

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

__construct(array $provider, string $guard)

JwtGuard constructor.

Paramètres

array $provider
string $guard

string|null getToken()

Get the generated token

Valeur de retour

string|null