Hello everyone,
I hope you're doing well. I'm currently facing a challenge with my database implementation, and I could really use your help. I have two tables: "mothers" and "sons." For each table, I have separate models, but I want to avoid creating separate Nova resources for the forms associated with these tables.
To tackle this issue, I decided to utilize Nova Flexible Content, which allows me to merge dynamic fields into the parent resource, which in this case is the Mother resource. However, I'm encountering difficulties when it comes to storing the data properly. My goal is to send the data from the Mother fields to the mothers table and the data from the Sons fields to the sons table.
I've attempted various approaches, including using functions like Store, Save, and Fill in the model, but unfortunately, none of them have been successful. I have attached some code snippets to provide a clearer understanding of my implementation.
Could you please review the code snippets and provide any guidance, suggestions, or insights that could help me overcome this challenge? I would greatly appreciate your assistance.
I have tried several other approaches as well, but unfortunately, none of the functions are working as expected. Any assistance you can provide would be greatly appreciated.
Thank you for your help.