From 83fe1b5b2d13cdfb2ebf7d9831eafa7390dbbd02 Mon Sep 17 00:00:00 2001 From: Antonio Carlos Ribeiro Date: Sat, 23 Oct 2021 18:13:31 +0200 Subject: [PATCH] Check for debug mode only on production --- src/config/resources/DebugMode.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/resources/DebugMode.yml b/src/config/resources/DebugMode.yml index 3b8abd26..ee178778 100644 --- a/src/config/resources/DebugMode.yml +++ b/src/config/resources/DebugMode.yml @@ -1,4 +1,4 @@ -name: Debug Mode +name: Debug Mode on Production abbreviation: debug checker: PragmaRX\Health\Checkers\Expression notify: true @@ -6,5 +6,5 @@ column_size: 3 error_message: "Application is in debug mode" targets: - default: - expression_value: "app('config')->get('app.debug')" - should_return: false + expression_value: "!app()->environment('production') || !app('config')->get('app.debug')" + should_return: true