FilamentF
Filament9mo ago
Mack H

Resolve Tenant before panel

I'm pretty sure it's a bust, but asking cause. AI doesn't know the answer and neither do I.

            ->colors(function () {
                $tenant = Filament::getTenant();
                if (!$tenant) {
                    return [];
                }
                $configService = app(ConfigService::class);
                $themeService = new ThemeService($tenant, $configService);
                return $themeService->getFilamentColors();
            })
Solution
Filament Mastery
Learn how to dynamically set logos and colors in a Filament multi-tenancy panel. Customize branding per tenant using middleware and database configurations.
Was this page helpful?