如何将错误电子邮件发送给Laravel 8应用中的开发人员

发布于 2025-01-28 13:16:02 字数 435 浏览 1 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文