i am run this command for model, migration, resource controller. php artisan make:model QuestionAnswer -mc -r
..
Resource Route
Route::resource('faq','QuestionAnswerController');
My Edit Function
public function edit(QuestionAnswer $questionAnswer)
{
// return $questionAnswer
return view('backend.faq.edit',get_defined_vars());
}
Edit Route
{{route('admin.faq.edit',$questionAnswer->id)}}
Edit function return $questionAnswer
return null
Below Picture
When i Change resource route…
Top comments (0)