class Illuminate / Auth / RequestGuard

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