Get ID after save and perform multiple inserts to another table #1807
Unanswered
sherwinaval
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Can someone please help me to find out how can I do this with Orchid.
Saving:
Insert data to the parent table and get the id, then take the id and insert multiple items to another table.
Updating:
When saved, take the existing id, then delete all entries from another table based on the id. Save the changes in the parent table then insert again multiple items to another table.
Basically it is like an order system, where an order is being placed and there are multiple items inside the order. A personal project for my wife.
I am still learning Laravel and started out Orchid few days back. I will definitely have more questions to ask and really appreciate your help and patience. Thank you.
Sherwin
Beta Was this translation helpful? Give feedback.
All reactions