multi tenancy as polymorphic table
In multi-tenancy by default every resource should get an extra table column team_id for example. Isn’t it possible to use one polymorphic table with which resource holds access to which team and which resource record and corresponding user? Keeps all the rest of the tables clean and no extra migrations to run on the tables.
Has anybody tried yet / is it possible?
2 Replies
Maybe with this merge it became possible…? https://github.com/filamentphp/filament/pull/7964
GitHub
allow polymorphic relation for tenant by demobiel · Pull Request #7...
Changes have been thoroughly tested to not break existing functionality.
New functionality has been documented or existing documentation has been updated to reflect changes.
no, now i understand pull/7964 it has the function to get correct relations of a Resource Model which is a polymorphic Model.