MethodsPropertiesConstantshosts() No public properties foundNo constants foundNo protected methods foundNo protected properties foundN/ANo private methods foundNo private properties foundN/A
Methods
hosts()
hosts() : array
Get the host patterns that should be trusted.
Returns
array
TrustHosts.php
<?phpnamespaceApp\Http\Middleware;useIlluminate\Http\Middleware\TrustHostsas Middleware;classTrustHostsextendsMiddleware{/**
* Get the host patterns that should be trusted.
*
* @return array
*/publicfunctionhosts(){return[$this->allSubdomainsOfApplicationUrl(),];}}