interface Illuminate / Contracts / Auth / Guard
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Guard

Methods

public

check ( ) : bool

Determine if the current user is authenticated.

public

guest ( ) : bool

Determine if the current user is a guest.

public

user ( ) : Authenticatable |null

Get the currently authenticated user.

public

id ( ) : int|string|null

Get the ID for the currently authenticated user.

public

validate ( array $credentials ) : bool

Validate a user's credentials.

Parameters

  • $credentials array
public

setUser ( Authenticatable $user ) : void

Set the current user.

Parameters