Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Add property on create #1019

Closed
scriptPilot opened this issue Mar 2, 2024 · 3 comments
Closed

Question: Add property on create #1019

scriptPilot opened this issue Mar 2, 2024 · 3 comments
Assignees

Comments

@scriptPilot
Copy link

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?

@apps-caraga
Copy link
Contributor

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

@mevdschee mevdschee self-assigned this Mar 3, 2024
@mevdschee
Copy link
Owner

I agree, please let us know if you need more information or guidance.

@scriptPilot
Copy link
Author

Perfect - thanks both of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants