Question: Add property on create
scriptPilot opened this issue · comments
On creation of a new record, I would like to add another property owner = $_SESSION['user']['id']
- is there any middleware I can use to archive this?
You can use the multiTenancy middleware to automatically insert (and also filter) the current user's ID to a related table. Anyway, check #754 if you got similar use case. If not, you can provide more data on your specific requirement
I agree, please let us know if you need more information or guidance.
Perfect - thanks both of you!