Laravel 5.4 POST方法不起作用

时间:2017-12-27 00:29:00

标签: php laravel-5.4

我有一个注册表格,它通过GET而不是POST发送凭证,即使它已设置为POST,这真的很奇怪,我花了几个小时来解决这个问题,当我改变了我的路线时,我得到了这个例外

  

(1/1)MethodNotAllowedHttpException

所以这里是通过GET发送数据的路由(没有异常):

Route::get('/register', 'RegistrationController@show');

Route::post('/register', 'RegistrationController@store');

以下是引发异常的更改:

Route::get('/register', 'RegistrationController@show');

Route::post('/connect', 'RegistrationController@store');

check the last 2 commits for more

1 个答案:

答案 0 :(得分:2)

您在表单中使用methode代替method(不含e)。

相关问题