multitenancy
Is it possible to make the multi tenancy optional like based on user, admin should I have the right to assign user to a team otherwise normal functionality should work without teams??
4 Replies
You can make almost everything with filament! π I don't get exactly what you want but I think it should be possible.
Okay so let me explain @Sjoerd24
As filamant comes with multi tenancy by default and we can enable it by defining some relation with teams model in user model and can add access methods as well to get started right?
And within the admin panel provider we have to add the tenent thing so that it can show us on ui side
Now user model is working fine and teams is working fine now we have a requirement that we only want to make team optional so initially user will be not a part of any team and admin will asssign him a team after that user can access those teams related feature otherwise default functioanlity should work
Hope I have made it clear to you
Yeah that should be possible. You could check if a user has a team role and then display things that it needs. You can do that in an applyTenantScopes middleware like defined in the docs.
Is it possible to check auth user in panel provider?