File manager - Edit - /var/www/payraty/helpdesk/common/Core/BaseTrustHosts.php
Back
<?php namespace Common\Core; use Common\Domains\CustomDomainController; use Illuminate\Http\Middleware\TrustHosts as Middleware; class BaseTrustHosts extends Middleware { public function hosts(): array { return [ $this->allSubdomainsOfApplicationUrl(), ]; } protected function shouldSpecifyTrustedHosts(): bool { // allow custom domain validation if (request()->path() === CustomDomainController::VALIDATE_CUSTOM_DOMAIN_PATH) { return false; } else { return parent::shouldSpecifyTrustedHosts(); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings