【问题标题】:Laravel 6 change back to the old 5.8 exception screenLaravel 6 改回旧的 5.8 异常屏幕
【发布时间】:2019-11-17 09:12:57
【问题描述】:

我真的不喜欢 laravel 6 中的新异常屏幕。有没有办法将它从 5.8 切换回那个?

【问题讨论】:

  • 旧的方式是使用whoops,所以你可以手动安装它。

标签: laravel laravel-6


【解决方案1】:

哎呀是旧的错误处理程序,尝试安装它并注册一个新的处理程序,这里有一个例子:How can I register custom error handler in laravel 5?

在此处https://github.com/filp/whoops 查找如何安装和使用 whoops 的说明

PS:请注意,这个处理程序应该只在开发环境中执行

【讨论】:

    猜你喜欢
    • 2020-03-08
    • 2020-04-24
    • 2020-09-14
    • 1970-01-01
    • 2023-02-24
    • 2020-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多