Question about tenants with jetstream teams and multiple resources

What I am trying to do: I'm in the process of refactoring a Livewire 3 app into Filament. I used jetstream teams, but removed the personal teams. Every team can have multiple catalogs which contain products, links and exports (which would be the resources) related to the catalog. My questions: - How do I setup the multi-tenancy: Should it be based on teams or catalogs? - Is it possible to have "sub-resources" when I'm in a specific catalog?
Solution:
Just use the Tenants menu as normal for the Team. Then the catalog can be a custom select which sets a session value and your global scope on your models uses that else it returns blank
Jump to solution
5 Replies
neverything
neverything7mo ago
Here are two images of the current app to better illustrate it. The top right corner is the team selector from Jetstream and in this team, there are multiple catalogs. The second screenshot is the product view of a single catalog
No description
No description
toeknee
toeknee7mo ago
Tenant would be a team, then scope the resources to the selected catalog/team I did similar tbh
neverything
neverything7mo ago
Cool thank you, any tips for making it work properly? Should I add the selection of the current catalog into the tenant menu?
Solution
toeknee
toeknee7mo ago
Just use the Tenants menu as normal for the Team. Then the catalog can be a custom select which sets a session value and your global scope on your models uses that else it returns blank
neverything
neverything7mo ago
Thank you, that's a great idea.