Laravel错误:RouteCollection.php第233行中的MethodNotAllowedHttpException

时间:2017-04-07 07:04:40

标签: php laravel

Route::post('posts/delete/{id}', 'PostController@destroy');

错误:

  

RouteCollection.php第233行中的MethodNotAllowedHttpException

1 个答案:

答案 0 :(得分:0)

将其更改为:

Route::delete('posts/delete/{id}', 'PostController@destroy');