class Illuminate / Auth / RequestGuard
You are viewing an older version of the documentation. For the latest, please visit master documentation.

RequestGuard

Implements

Uses

Properties

protected

$callback callable

The guard callback.

Default: null
protected

$request Request

The request instance.

Default: null

Methods

public

__construct ( callable $callback , Request $request , UserProvider $provider ) : void

Create a new authentication guard.

Parameters

public

user ( ) : Authenticatable |null

Get the currently authenticated user.

public

validate ( array $credentials ) : bool

Validate a user's credentials.

Parameters

  • $credentials array
public

setRequest ( Request $request ) : $this

Set the current request instance.

Parameters