We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd90e16 commit 2172b51Copy full SHA for 2172b51
1 file changed
src/Hander/Whoops.php
@@ -15,7 +15,7 @@ class Whoops extends Handle
15
public function render($request, Throwable $e): Response
16
{
17
// Whoops 接管请求异常
18
- if (config('whoops.enable')) {
+ if (config('whoops.enable') && $this->app->isDebug()) {
19
if ($e instanceof HttpResponseException) {
20
return $e->getResponse();
21
}
0 commit comments