F
Filament8mo ago
Mikail

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
Mikail
MikailOP8mo ago
Anyone? It's the way my previous app was built prior to Filament.
awcodes
awcodes8mo ago
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.
Mikail
MikailOP8mo ago
If you could give a hint it will go a long way.
awcodes
awcodes8mo ago
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.
awcodes
awcodes8mo ago
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.
No description
No description
No description
Mikail
MikailOP8mo ago
More like invitation, correct? You were right, it's all still Laravel idea. Thank you for this
Want results from more Discord servers?
Add your server