Laravel 5.1.26:MethodNotAllowedHttpException在RouteCollection.php第219行

Laravel 5.1.26:MethodNotAllowedHttpException在RouteCollection.php第219行,php,laravel-5,Php,Laravel 5,在laravel中提交表单时,我将获得MethodNotAllowedHttpException HTML文件 <form action="{{ action('HomeController@store') }}" method="post"> <input name="_method" type="hidden" value="PATCH"> <input name="_token" type="hidden" value="{{ csrf_token() }}"

在laravel中提交表单时,我将获得
MethodNotAllowedHttpException

HTML文件

<form action="{{ action('HomeController@store') }}" method="post">
<input name="_method" type="hidden" value="PATCH">
<input name="_token" type="hidden" value="{{ csrf_token() }}"/>
<input type="submit" name="Submit" value="submit">
</form>
为什么我会在表单操作页面中获取MethodNotAllowedHttpException?
我已经回答了一些与此相关的问题,但没有任何帮助,即使表单使用POST方法,您也会发送额外的param
\u方法
,这将让框架知道您想使用该方法。如果发送该额外参数,则应相应地设置路由:

Route::patch('formaction','HomeController@store');

提交表单后,当我刷新页面时,再次提交表单,并且csrf在此未工作。返回
存储
方法的是什么?更新后应重定向
Route::patch('formaction','HomeController@store');