class SessionGuard extends GuardContract (View source)

Traits

Properties

protected string $guard

The define guard

from  GuardContract

Methods

mixed
id()

Get the user id

bool
check()

Check if user is authenticate

bool
guest()

Check if user is guest

bool
logout()

Make direct logout

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)

SessionGuard constructor.

Details

mixed id()

Get the user id

Return Value

mixed

bool check()

Check if user is authenticate

Return Value

bool

bool guest()

Check if user is guest

Return Value

bool

bool logout()

Make direct logout

Return Value

bool

bool login(Authentication $user)

Make direct login

Parameters

Authentication $user

Return Value

bool

Authentication|null user()

Check if user is authenticate

Return Value

Authentication|null

bool attempts(array $credentials)

Check if user is authenticate

Parameters

array $credentials

Return Value

bool

string getName()

Get the guard name

Return Value

string

GuardContract guard(string $guard = null)

Load the a guard

Parameters

string $guard

Return Value

GuardContract

__construct(array $provider, string $guard)

SessionGuard constructor.

Parameters

array $provider
string $guard