$portalValues Eigenes Portal plus `both`. * @param array $domainConfig */ private function __construct( public readonly string $domainKey, public readonly Portal $portal, public readonly string $language, public readonly array $portalValues, public readonly array $domainConfig, ) {} public static function fromRequest(): self { $host = request()->getHost(); [$domainKey, $portal] = str_contains($host, 'presseecho') ? ['presseecho', Portal::Presseecho] : ['businessportal24', Portal::Businessportal24]; return new self( domainKey: $domainKey, portal: $portal, language: app()->getLocale(), portalValues: [$portal->value, Portal::Both->value], domainConfig: DomainAssetContext::applyWebDomainConfig($domainKey), ); } }