Xpressengine\Site\SiteHandler::checkUsableDomain PHP Method

checkUsableDomain() protected method

checkUsableDomain
protected checkUsableDomain ( string $host ) : void
$host string site host
return void
    protected function checkUsableDomain($host)
    {
        $model = $this->createModel();
        if ($model->newQuery()->where('host', $host)->exists()) {
            throw new CanNotUseDomainException(['host' => $host]);
        }
    }