<?phpnamespaceApp\Http\Middleware;useIlluminate\Http\Middleware\TrustHostsasMiddleware;classTrustHostsextendsMiddleware{/** * Get the host patterns that should be trusted. * * @return array */publicfunctionhosts(){return[$this->allSubdomainsOfApplicationUrl(),];}}