Tenant admin color
Hello,
Do you know a way to get Tenant in Filament Provider in order to have the current Tenant ? The idea behind that is to set a color per Panel
I've tried to use the bootUsing method in $panel, but set $panel->colors no update the color ...
The problem with AppServiceProvider is I can't get current tenant or even route ...
Solution:Jump to solution
Ok so if anybody wonder how to do that, I've simply created a new middleware :
````
public function handle(Request $request, Closure $next): Response
{
$tenant = Filament::getTenant();...
4 Replies
Solution
Ok so if anybody wonder how to do that, I've simply created a new middleware :
And add it to ->tenantMiddleware in $panel configuration
@Arnaud Awesome, just what i was looking for!
You saved me hours of fiddling.
readlly wish i could do this though π
But i assume there is some technical reason as to why this is not supported out of the box.
gonna wrap this up in a blog post for the future