[Solved] Laravel 8: Missing required parameter for [Route: edit.question] [URI: editquestion/{question}] [Missing parameter: question]


From

public function editQuestion(Question $slug)
    {
        return view('questions.editquestion',[
            'slug' => $slug
        ]);
    }

you are injecting Question model in editQuestion(Route-model binding), so you should pass your question class instance in your form too.

<form action="{{ route('edit.question', $show) }}">
   <button type="submit" class="text-blue-500">Edit Question</button>
</form>

or

<form action="{{ route('edit.question', ['question' => $show]) }}">

should work fine.

solved Laravel 8: Missing required parameter for [Route: edit.question] [URI: editquestion/{question}] [Missing parameter: question]