【发布时间】:2018-03-25 14:37:12
【问题描述】:
当我提交表单时,以下路线工作正常
Route::put('/autorisation', 'AdministratifController@update_autorisation')->name('administartif.updateautorisation');
但我想知道为什么当我尝试访问 http://example.com/autorisation
它抛出
Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
No message
找不到页面插入
这不是关于表单,而是关于进入浏览器并输入example.com/autorisation,然后你会得到no message 的错误代替404
PS:在我的路线中我没有定义这个Route::get('/autorisation')
【问题讨论】:
-
请在表格中检查您的方法
-
我有 POST 问题,它不是关于表单的问题,它是关于进入浏览器并输入 example.com/autorisation 然后你得到那个错误而不是 404