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

TrustHosts

Properties

protected

$app Application

The application instance.

Default: null

Methods

public

__construct ( Application $app ) : void

Create a new middleware instance.

Parameters

public abstract

hosts ( ) : array

Get the host patterns that should be trusted.

public

handle ( Request $request , $next ) : Response

Handle the incoming request.

Parameters

protected

shouldSpecifyTrustedHosts ( ) : bool

Determine if the application should specify trusted hosts.

protected

allSubdomainsOfApplicationUrl ( ) : string|null

Get a regular expression matching the application URL and all of its subdomains.