Can multiple users share the same tenants in multi-tenancy?
Is it possible for multiple users to have access to the same multiple tenants from the panel?
And secondly, could we have a single login page with multiple Auth system where users are simply directed to their own panel based on role. This is to avoid multiple login page.
Would appreciate any idea on this...
6 Replies
Anyone? It's the way my previous app was built prior to Filament.
Yes. It’s all possible. You just have to remember that filament is still just a laravel app. But there’s several steps to this that will be hard to type out.
If you could give a hint it will go a long way.
it's a Many to Many relationship between Tenants and Users, then you just have to have a way to associate them via a UserResource, etc. And for the redirection you would need to handle that in a middleware.
Notice how 'Test User' is on 2 tenants in the first two screen shots. Being able to add users will depend on your app and it's logic though. In this case, I allow only admins to bypass the tenant scope to return a list of all users in the system that they can add to any tenant they need to.
More like invitation, correct? You were right, it's all still Laravel idea. Thank you for this