gpt4 book ai didi

Laravel 5.2 - 自定义错误 "Whoops, looks like something went wrong"

转载 作者:行者123 更新时间:2023-12-01 08:25:10 26 4
gpt4 key购买 nike

如何更改错误页面“糟糕,好像出了点问题。”?我想在 errors 文件夹中显示我的页面 404我的处理程序很简单:

public function render($request, Exception $e)
{
return parent::render($request, $e);
}

最佳答案

我假设你已经在 app/Exceptions/Handler.php

public function render($request, Exception $e)
{
return response()->view('errors.custom');
}

关于Laravel 5.2 - 自定义错误 "Whoops, looks like something went wrong",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37498972/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com