Set color after tenant set
How can i set the panel's colors after teh Tenant has been set?
6 Replies
I have already tried doing Filament::getPanel('name')->colors() in TenantSet event
but that didn't do anything
any ideas 😢
Can you share the code you've tried? That might help people to respond.
Just this
That really doesn’t help. We need more context. Where did you try that code? Those kinds of things can matter.
TenantSet is probably not the right place to do this. Perhaps you need to grab the current tenant and set the colors in your actual PanelProvider.
I'm guessing a middleware would work. If tenant chooses and saves colors, you can register them on the next request in a tenant-aware middleware
ill give it a shot