skip to Main Content

send entity for controller not working, php laravel 7

in blade template <form action="{{ route('leads.courses.restore', $lead->id) }}" method="POST"> @csrf <button type="submit"> Restore </button> </form> in routes Route::post('leads/courses/{lead}/restore', 'LeadsCoursesController@restore')->name('leads.courses.restore'); in controller public function restore(Lead $lead) { dd("ok"); } but i receive HTTP code 404, if i remove the parameter in…

VIEW QUESTION
Back To Top
Search