Theford
Explore posts from serversHow to Implement Multi-Tenancy with Admin View Option in FilamentPHP v3?
Thanks for the reply @Ross Bearman . I thought as well that the impersonate plugin could be a suitable alternative. Whether im going then with a dedicated admin and tenant panel is a matter of taste then. I was hoping not to have to extract most of it into a third class, but sounds like the most maintainable solution going forward.
Thanks for the input - I wanted to make sure that im not missing out on something obvious 🙂
@krekas code wise its the filament vanilla + tenancy. Because of that I just lost out on the fact that an admin role is still scoped to the current tenant.
17 replies
How to Implement Multi-Tenancy with Admin View Option in FilamentPHP v3?
Sorry maybe I was unclear.
The tenancy is working fine, but in the dropdown I always have to pick a tenant and the scope is then working for that tenant. Where can I basically pick a administrator like choice to show it all.
That is the part I’m missing
17 replies
How to Implement Multi-Tenancy with Admin View Option in FilamentPHP v3?
BTW. I implemented all of it already and it works like a charm. But I just lost the admin like view to see all records.
Maybe it’s a bad pattern. But it sounds like a lot of code duplication if I’m going to create a second panel for admin. Especially because then we have to test both places and it’s quite handy to have the admin naturally test what tenant users will see as well.
We don’t expect much customization between tenant and admin users. It’s mostly a convenient impersonate for admin users if the need to work on a specific tenant.
17 replies