Hey!
You are using div
tags for form elements like: <div hidden name="quizId" value="{{ $quiz->id }}">
or <div name="questionId" value="{{ $question->id }}">
which is not a valid form input/element.
Your quizId
and questionId
fields are empty in the request as they don't exist because of how you use them.
If you do it like <input type="hidden" name="quizId" value="{{ $quiz->id }}"/>
and <input type="hidden" name="questionId" value="{{ $question->id }}" />
it should send both IDs to the controller and update your items accordingly.
obaidfarooq liked this reply
thanks for answer but it's still don't works other code of mine is correct?
Hey!
What doesn't work. Did you get an error? Can you please post your code again and include it in 3 backticks ```
instead of one to make it easier readable.
Thanks!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community