我是新来的。我得到了这个POST路由,但是如果有人在浏览器上尝试这个地址,它就会变成一个GET路由,并且laravel会抛出一个错误。有没有办法在POST路由上为GET请求抛出一个404页面。Route::post('/step2Validate', 'StepController@step2Validate'); If this route is access as
我试图通过ajax提交一个图片,但是得到了错误:The POST method is not supported for this route.Supported methods: GET, HEAD.<a class="btn btn-primary mb-5" href="#" id="selectProfileImage">Add profile image</a>
</form> 路由: Route::post
我是Laravel 6的新手,我正在尝试创建一个编辑配置文件功能,但我遇到了这个错误: The GET method is not supported for this route.Supported methods: POST 老实说,我不确定为什么会出现这个错误。我已经交叉检查过所有东西了。the data
return redirect()->route('profile.index')->with('info','Profile got