class Illuminate / Auth / RequestGuard
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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