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