MethodNotAllowedHttpException在RouteCollection.php第251行laravel 5.4中
我的代码中有3部分我不知道这是什么错误 web.php:MethodNotAllowedHttpException在RouteCollection.php第251行laravel 5.4中,laravel,Laravel,我的代码中有3部分我不知道这是什么错误 web.php: Route::group(['namespace' => 'Admin' , 'prefix' => 'admin'],function (){ $this->get('/panel','PanelController@index'); $this->resource('courses' , 'CourseController');}); 课程控制员: public function edit(Course $
Route::group(['namespace' => 'Admin' , 'prefix' => 'admin'],function (){
$this->get('/panel','PanelController@index');
$this->resource('courses' , 'CourseController');});
课程控制员:
public function edit(Course $course)
{
return view('Admin.courses.edit' , compact('course'));
}
edit.blade.php:
<form class="form-horizontal" action="{{ route('courses.update' , ['course' => $course->id]) }}" method="post" enctype="multipart/form-data">