且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Laravel Ajax返回500(内部服务器错误)

更新时间:2022-04-18 01:48:57

没有错误,没人可以做任何事情您可以手动检查日志.在/storage/logs中.但是,如果您想看到现场"错误,请执行以下操作.提交之前,请打开开发者控制台并转到网络"选项卡.提交ajax请求.然后,您会在网络"标签中看到红色的请求.单击它,在右侧有预览选项卡.在预览"选项卡中将显示laravel格式的消息.希望这对您的调试有所帮助

Without the error nobody can't do anything You can Check your logs manually. in /storage/logs. But if you want to see the error "on site" Do the following. Before you submit open the developer console and go to the networking tab. submit the ajax request. And you will get the red request in the networking tab. Click on it, and on the right side there is the preview tab. In the preview tab will be the laravel formatted message. Hope this helps with your debugging