class Guards (View source)

Methods

__construct(string|null $guard = null)

Guards contructor

bool
check()

Check if user is authenticate

bool
user()

Check if user is authenticate

bool
attempts(array $credentials)

Check if user is authenticate

bool
id()

Get the user id

Details

__construct(string|null $guard = null)

Guards contructor

Parameters

string|null $guard

bool check()

Check if user is authenticate

Return Value

bool

bool user()

Check if user is authenticate

Return Value

bool

bool attempts(array $credentials)

Check if user is authenticate

Parameters

array $credentials

Return Value

bool

bool id()

Get the user id

Return Value

bool