I have:
Question Model:
- id
- name
- correct_answer -> references id on Question_Answers
Question_Answer Model:
- id
- answer
- question_id
I want to use repeater to create question and its answer in single modal. Is there anyway I could access to-be-created Question_Asnwer and assign in to my Question's correct_answer? What's the best approach here? Thanks!