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

HandlePrecognitiveRequests

Properties

protected

$container Container

The container instance.

Default: null

Methods

public

__construct ( Container $container ) : void

Create a new middleware instance.

Parameters

public

handle ( $request , $next ) : Response

Handle an incoming request.

Parameters

protected

prepareForPrecognition ( $request ) : void

Prepare to handle a precognitive request.

Parameters

protected

appendVaryHeader ( $request , $response ) : Response

Append the appropriate "Vary" header to the given response.

Parameters