Pinned
In response to @skegel
Sounds over-engineered. A simple foreignId on the users table would see this done clearly and concisely
A little NativePHP project I'm working on
Are you working on any at the moment?
In response to @skegel
If you put it on the pivot table, how will you tell which tenant-user combination is the authoritative one that represents the current one?
•
In response to @skegel
I'd advise against this. Pennant's data is really only a cache of the current state of its rules and can be purged.
For your case I'd recommend a simple foreignId on your users table such as current_tenant_id
•