
Laravel
laravel报错“The POST method is not supported for this route”
12-01 13:30使用laravel做表单提交时,显示这样的错误:“The POST method is not supported for this route...”
这是由于form标签中的提交方式method="post",而路由中只配置了get导致,若直接把路由中的get更换为post,则拿不到路由中一些需要get接收的参数,如当前控制器的路径等,可能报404或其他错误
解决方法:在路由中,使用match配置get和post两种,或直接使用any
微信小程序
