Spatie Team ID v Filament Tenancy timing
Hi, I'm trying to get Spatie permissions with Teams up and going, and I'm noticing an inconsistency where sometimes the 'tenant' will be passed through and sometimes I won't. I have middleware setting the teamID per documentation and other feedback I've seen. I've attempted to reimplement middleware priority, but to no effect.
Using XDebug, I can see that when the middleware is called, the tenant has not yet been set; therefore, when Spatie deals with it:
Multiple company_id is null. Happy to raise this to Spatie as well, but wondering if anyone had some insight?
Thanks!
1 Reply
Where is this query coming from? From a middleware itself? Does that middleware run after Tenant Identification?