class
Illuminate
/
Http
/
Middleware
/
TrustHosts
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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.
public
handle ( Request $request , $next ) : Response
Handle the incoming request.
Parameters
- $request Request
- $next callable
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.