trait GuardHelpers (View source)

These methods are typically the same across all guards.

Methods

bool
check()

Determine if the current user is authenticated.

bool
guest()

Determine if the current user is a guest.

int|null
id()

Get the ID for the currently authenticated user.

void
setUser( Authenticatable $user)

Set the current user.

Details

at line line 31
bool check()

Determine if the current user is authenticated.

Return Value

bool

at line line 41
bool guest()

Determine if the current user is a guest.

Return Value

bool

at line line 51
int|null id()

Get the ID for the currently authenticated user.

Return Value

int|null

at line line 64
void setUser( Authenticatable $user)

Set the current user.

Parameters

Authenticatable $user

Return Value

void