class Illuminate / Http / Middleware / TrustHosts
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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.