F
Filament12mo ago
JamesA

Multitenant route prefix

When setting up multitenancy in v3, how would you configure a route prefix. For example in the Service Provider for a panel can you use a wildcard in the path?
6 Replies
JamesA
JamesA12mo ago
Does anyone know how to make this work or if this is possible?
Patrick Boivin
Patrick Boivin12mo ago
What would this look like for a given tenant and resource... can you give an example of a full url?
JamesA
JamesA12mo ago
So something like example.com/organization/{orgid}/panel1 where I can have a Middleware to grab the orgid to set the tenant for panel1. So basically organization/*/panel1 would be the url for panel1
Patrick Boivin
Patrick Boivin12mo ago
I'm not sure there's an easy solution for this at the moment... it seems like you would need to override how the tenant routes are registered internally
JamesA
JamesA12mo ago
I didn't realize but it seems filament already adds the tenant ID to the route after the panel. I was planing on using multiple panels for organizing resources but I could just create a single panel with no path so then the url will be example.com/{orgid} which is closer to what I want but I still want to do /organization/{ordid} would that be possible at least?
Patrick Boivin
Patrick Boivin12mo ago
Can you use organization instead of an empty path for this new panel?