How to get current tenant in FilamentServiceProvider?
Hi guys, I want to dynamicaly set some NavigationItems based on current tenant. So I need to register them in service provider, but I am not sure, how to access current tenant, becuase this is not working:
2 Replies
You can't because the tenant is identified via Middleware. You need another middleware to change the Panel config. Search the Discord this has been solved before.
Thank you, I solved this on Resource, where I overwrite getNavigationItems method.