{"record":{"id":"6a2dadaa24532b9b","repo":"filamentphp/filament","slug":"the-current-domain-is-not-set-but-multiple-domain","errorCode":null,"errorMessage":"The current domain is not set, but multiple domains are registered for the panel. Please use [Filament::currentDomain('example.com')] to set the current domain to ensure that panel URLs are generated correctly.","messagePattern":"The current domain is not set, but multiple domains are registered for the panel\\. Please use \\[Filament::currentDomain\\('example\\.com'\\)\\] to set the current domain to ensure that panel URLs are generated correctly\\.","errorType":"exception","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"packages/panels/src/FilamentManager.php","lineNumber":1141,"sourceCode":"    }\n\n    public function arePasswordsRevealable(): bool\n    {\n        return $this->getCurrentOrDefaultPanel()->arePasswordsRevealable();\n    }\n\n    public function getCurrentDomain(?string $testingDomain = null): string\n    {\n        if (filled($this->currentDomain)) {\n            return $this->currentDomain;\n        }\n\n        if (app()->runningUnitTests()) {\n            return $testingDomain;\n        }\n\n        if (app()->runningInConsole()) {\n            throw new LogicException('The current domain is not set, but multiple domains are registered for the panel. Please use [Filament::currentDomain(\\'example.com\\')] to set the current domain to ensure that panel URLs are generated correctly.');\n        }\n\n        return request()->getHost();\n    }\n\n    public function getTenancyScopeName(): string\n    {\n        return $this->getCurrentOrDefaultPanel()->getTenancyScopeName();\n    }\n\n    /**\n     * @return array<string, MultiFactorAuthenticationProvider>\n     */\n    public function getMultiFactorAuthenticationProviders(): array\n    {\n        return $this->getCurrentOrDefaultPanel()->getMultiFactorAuthenticationProviders();\n    }\n","sourceCodeStart":1123,"sourceCodeEnd":1159,"githubUrl":"https://github.com/filamentphp/filament/blob/53483fa9340e4ec637985fe454ebb58afb92ea24/packages/panels/src/FilamentManager.php#L1123-L1159","documentation":"Error \"The current domain is not set, but multiple domains are registered for the panel. Please use [Filament::currentDomain('example.com')] to set the current domain to ensure that panel URLs are generated correctly.\" thrown in filamentphp/filament.","triggerScenarios":"Thrown at packages/panels/src/FilamentManager.php:1141 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53483fa9340e4ec637985fe454ebb58afb92ea24","analyzedAt":"2026-08-17T02:06:23.049Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}