Do I have to create a model in Laravel for a pivot table of 3 tables?

0

I am developing an application in which exam simulations are carried out. The exams are generated for each user with random questions. There are questions and each one has its answers, one of them is correct. In turn, the user performs the exam, and answers questions, selecting one of the answers. The same as a multiple-choice test.

It suits me to create an intermediate model that is something like Test Answer (AnswerTest)? or how can I relate Test to Answer and Question? My idea is to be able to recreate the exam questions with the answer that the user selected, in order to visualize it.

    
asked by Jeremias Araujo 16.11.2017 в 01:17
source

0 answers