class JwtGuard extends GuardContract (View source)

Traits

Properties

protected string $guard

The define guard

from  GuardContract

Methods

bool
check()

Check if user is authenticate

bool
guest()

Check if user is guest

bool
logout()

Destruit token

Authenticate
user()

Check if user is authenticate

bool
attempts(array $credentials)

Check if user is authenticate

guard(string $guard = null)

Load the a guard

Token
getToken()

Get the generated token

__construct(array $provider, string $guard = null)

JwtGuard constructor.

Policier
getPolicier()

Get the Policier instance

string
getTokenString()

Get the token string

bool
login(Authentication $user)

Make direct login

bool
id()

Get the user id

Details

bool check()

Check if user is authenticate

Return Value

bool

bool guest()

Check if user is guest

Return Value

bool

bool logout()

Destruit token

Return Value

bool

Authenticate user()

Check if user is authenticate

Return Value

Authenticate

bool attempts(array $credentials)

Check if user is authenticate

Parameters

array $credentials

Return Value

bool

GuardContract guard(string $guard = null)

Load the a guard

Parameters

string $guard

Return Value

GuardContract

Token getToken()

Get the generated token

Return Value

Token

__construct(array $provider, string $guard = null)

JwtGuard constructor.

Parameters

array $provider
string $guard

Policier getPolicier()

Get the Policier instance

Return Value

Policier

string getTokenString()

Get the token string

Return Value

string

bool login(Authentication $user)

Make direct login

Parameters

Authentication $user

Return Value

bool

bool id()

Get the user id

Return Value

bool