Explorar el Código

修改 production 為 PRO / pro

LuluFJ.Ho hace 2 años
padre
commit
4e1be5b4b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Exceptions/Handler.php

+ 1
- 1
app/Exceptions/Handler.php Ver fichero

@@ -118,7 +118,7 @@ class Handler extends ExceptionHandler
118 118
             'message' => $message,
119 119
         ];
120 120
 
121
-        if (!app()->environment('production')) {
121
+        if (!app()->environment('PRO')&&!app()->environment('pro')) {
122 122
             $data['errors'] = [
123 123
                 'message' => $exception->getMessage(),
124 124
                 'trace'   => $exception->getTrace(),