-
I recently discovered the Orchid package. You have done a great job. In the Data management Example, you have shown how to work with one-to-many relationships. In my project, I want to use many-many relationship and am having difficulties. I have two models Career and Interset with many-to-many relationships In Career Model I have defined Interests as
The dropdown works fine but the data is not saved in the database. What am I doing wrong? I have also tried using As you can see I am not an expert in Laravel, and need your help. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Have you read the Many to many documentation here? |
Beta Was this translation helpful? Give feedback.
-
@kvedak did you come up with a solution? I am struggling with this as well. |
Beta Was this translation helpful? Give feedback.
-
Sorry for not updating the conversation, Asdita. My problem was my
ignorance. I was under the impression that Orchid has built-in support for
one-to-many relationships. After your direction, I read the documentation
and updated my code with attach function.
Thanks for your help.
Kiran
…On Mon, May 10, 2021 at 9:39 AM Asdita Prasetya ***@***.***> wrote:
What is your problem, maybe I can help you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1553 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC2AROHGJENRUZWUGGHAJW3TM7V2TANCNFSM4XGQGKIA>
.
|
Beta Was this translation helpful? Give feedback.
Have you read the Many to many documentation here?
To save data you can use
attach
function