JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "BaseTrustHosts.php"

Full Path: /home/markqprx/iniasli.pro/common-20260222054425/Core/BaseTrustHosts.php
File size: 613 bytes
MIME-type: text/x-php
Charset: utf-8

<?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();
        }
    }
}