Skip to content
Advertisement

Missing required parameters for [Route: questions.update] pass 2 parameters in the url

guys i have a problem when passing two parameters in the url that is in file web.php

That’s my error

I used

Route::resource('/exams/{exam}/questions', 'BackendQuestionController');

to define the default routes.

In the terminal looks like:

JavaScript

And to redirect, it is written this way

JavaScript

And the Controller.php

JavaScript

But I can’t understand why it fails, if I’m already passing the parameters indicated by the url.

Also add the edit view

JavaScript

Advertisement

Answer

JavaScript

that is your route but,

JavaScript

this is your action. You are missing the exam id in form action.

it should be

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement