abstract class GuardContract (View source)

Properties

protected string $guard

The define guard

Methods

bool
check()

Check if user is authenticate

bool
guest()

Check if user is guest

bool
logout()

Logout

Authenticate
user()

Get authenticated user

bool
attempts(array $credentials)

Check if user is authenticate

guard(string $guard = null)

Load the a guard

Token
getToken()

No description

Details

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 Authenticate user()

Get authenticated user

Return Value

Authenticate

abstract 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()

No description

Return Value

Token