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 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

Details

abstract mixed id()

Check the user id

Return Value

mixed

abstract bool check()

Check if user is authenticate

Return Value

bool

abstract bool guest()

Check if user is guest

Return Value

bool

abstract bool logout()

Logout

Return Value

bool

abstract bool login(Authentication $user)

Logout

Parameters

Authentication $user

Return Value

bool

abstract Authentication|null user()

Get authenticated user

Return Value

Authentication|null

abstract 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