Tenancy - 3 levels: Super Admin, company, client

I need your kind assistance to direct me to the best solution for below. I currently have 2 panels: 'admin' and 'company'. The result I want to achieve is: - admin is the SaaS owner, where they manage the 'company' Tenant and its clients. - company is the main tenant where they can add 'client' as a team. What I did so far: I left the admin panel as is without adding Tenancy options. I did the tenancy setup under Company panel. Scenario: A company named Safe has decided to subscribe with the SaaS. Safe is a safety company that provides safety services to different clients/locations. Safe should have the ability to create a team/tenant under their account (uses the Company panel) and can manage their accounts. Safe passes a dashboard/account to their client (e.g. NOKIA factory). NOKIA factory have their dashboard with their own resources, widgets and pages.
3 Replies
Dennis Koch
Dennis Koch4mo ago
Unless you split this into 3 panels I don’t think it will work out of the box. But you can implement your own multitenancy by modifying the getEloquentQuery() and adding the condition for their team. Or you start with multi database tenancy via a 3rd party plugin and use Filaments multi tenancy for teams.
SoraKeyheart
SoraKeyheartOP4mo ago
Yes, I thought about 3 panels. Thank you. Is stancl a good option for this? Or is there a better fit for filament?
Dennis Koch
Dennis Koch4mo ago
Multitenancy is complex Stancl is an option but there is a lot to setup
Want results from more Discord servers?
Add your server