F
Filament10mo 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.
Jump to solution
2 Replies
Solution
awcodes
awcodes10mo ago
Possibly in the bootUsing(Panel $panel) modifier on the panel itself. It will run at the end of the boot cycle.
Veur
Veur10mo ago
Thanks a lot, that works!