FilamentF
Filament3y ago
Veur

Custumize panel per tenant with spatie/laravel-multitenancy

Hi, is there a way to configure a panel based on the current tenant (which is loaded by the current domain name)?

I am using ‘spatie/laravel-multitenancy’ and I tried to access app(‘currentTenant) in my panel’s service provider, but the currentTenant is not yet bound to the container by then.
Solution
Possibly in the bootUsing(Panel $panel) modifier on the panel itself. It will run at the end of the boot cycle.
Was this page helpful?