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
toeknee
toeknee3mo ago
Fairly sure that's because it's too early and the tenant hasn't been defined yet
Dennis Koch
Dennis Koch3mo ago
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
Want results from more Discord servers?
Add your server