There is no pivot table as this is a 1-N relationship. Just use
$question->answers()->save($answer);
To insert an answer related to a question.
Thanks. Then $answer will have only the following:
$answer = [
'answer' => $value,
];
Right?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community