如何将错误电子邮件发送给Laravel 8应用中的开发人员
我正在使用Laravel “ Laravel/Framework”:“^8.75”
版本。 部署应用程序转向app_debug = false时,但是用户会遇到错误,但是他们不知道怎么了,我不知道,因为我对其进行了测试,但是我的试验没有任何错误。 我需要收到一封电子邮件,其中详细介绍了应用程序上的任何错误例外,例如app_debug = true。 我发现的所有解决方案都是其他版本的app \ decespions \ handler
具有report()
and render()类有
public function register(){
$this->reportable(function (Throwable $e) {
//
});
}
I am using laravel "laravel/framework": "^8.75"
version.
When deployed the app turn APP_DEBUG=false but users get errors but they can not know what is wrong and me to I don't know because I tested it but my trial go through without an error.
I need to receive an email of any error exceptions that are thrown on the app in details like APP_DEBUG=true.
All the solutions I have found are of other versions whose App\Exceptions\Handler
is having report()
and render()
classes yet here I have
public function register(){
$this->reportable(function (Throwable $e) {
//
});
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论