F
Filament10mo ago
SK

stancl/tenancy Path Identification

Hi! I need some advice regarding Filament v3 together with stancl/tenancy. For security reasons I am using stancl/tenancy with one database per Tenant. The issue I have is, that I use path identification, instead of subdomain identification. So a path looks like: example.com/<tenant_id>/<panel>/<resource> I cannot access that route. I think I need to modify the Filament routing somehow, that first the tenant identification is read and the middleware is loaded to modify the database context and then execute the normal routing. Does anyone have any advice on that for me? Any comment is highly appreciated!
2 Replies
SK
SKOP10mo ago
Update: I got it partly working. Now I just need a possibility to add the tenant parameter to all routes provided by Filament. Does anyone have any idea?
kevin
kevin2mo ago
How did you do this?
Want results from more Discord servers?
Add your server