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
Methods
public
__construct ( Application $app ) : void
Create a new middleware instance.
Parameters
- $app Application
public
abstract
hosts ( ) : array
Get the host patterns that should be trusted.
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.