filament()->getTenant() null in bootUsing
When dd'ing filament()->getTenant() in the panels bootUsing method it returns null no matter where I navigate to
2 Replies
Fairly sure that's because it's too early and the tenant hasn't been defined yet
This. Tenant identification happens in a middleware which runs way after service providers. No need to move the code there or depending on your use-case use Closures for the Filament methods