F
Filament17mo ago
Anthony

Set color after tenant set

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