Set color after tenant set

How can i set the panel's colors after teh Tenant has been set?
6 Replies
Anthony
AnthonyOP2y ago
I have already tried doing Filament::getPanel('name')->colors() in TenantSet event but that didn't do anything any ideas 😢
awcodes
awcodes2y ago
Can you share the code you've tried? That might help people to respond.
Anthony
AnthonyOP2y ago
Just this
awcodes
awcodes2y ago
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.
josef
josef2y ago
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
Anthony
AnthonyOP2y ago
ill give it a shot

Did you find this page helpful?