interface Guard (View source)

Methods

bool
check()

Determine if the current user is authenticated.

bool
guest()

Determine if the current user is a guest.

user()

Get the currently authenticated user.

int|null
id()

Get the ID for the currently authenticated user.

bool
validate( array $credentials = array())

Validate a user's credentials.

void
setUser( Authenticatable $user)

Set the current user.

Details

at line line 12
bool check()

Determine if the current user is authenticated.

Return Value

bool

at line line 19
bool guest()

Determine if the current user is a guest.

Return Value

bool

at line line 26
Authenticatable|null user()

Get the currently authenticated user.

Return Value

Authenticatable|null

at line line 33
int|null id()

Get the ID for the currently authenticated user.

Return Value

int|null

at line line 41
bool validate( array $credentials = array())

Validate a user's credentials.

Parameters

array $credentials

Return Value

bool

at line line 49
void setUser( Authenticatable $user)

Set the current user.

Parameters

Authenticatable $user

Return Value

void