Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Larvel错误:RouteCollection.php第233行中的MethodNotAllowedHttpException_Php_Laravel - Fatal编程技术网

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

Larvel错误:RouteCollection.php第233行中的MethodNotAllowedHttpException,php,laravel,Php,Laravel,错误: MethodNotAllowedHttpException在RouteCollection.php第233行 将其更改为: Route::post('posts/delete/{id}', 'PostController@destroy'); 将其更改为: Route::post('posts/delete/{id}', 'PostController@destroy'); 这是你的方法destroy的名字吗?这是你的方法destroy的名字吗?

错误:

MethodNotAllowedHttpException在RouteCollection.php第233行

将其更改为:

Route::post('posts/delete/{id}', 'PostController@destroy');
将其更改为:

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

这是你的方法destroy的名字吗?这是你的方法destroy的名字吗?