We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92a81e commit 8039627Copy full SHA for 8039627
app/Providers/AppServiceProvider.php
@@ -91,9 +91,9 @@ public function boot(): void
91
});
92
93
// Don't run any health checks during tests
94
- if (config('app.env') !== 'testing') {
+ if (!app()->runningUnitTests()) {
95
Health::checks([
96
- DebugModeCheck::new()->unless(app()->environment('local')),
+ DebugModeCheck::new()->if(app()->isProduction()),
97
EnvironmentCheck::new(),
98
CacheCheck::new(),
99
DatabaseCheck::new(),
0 commit comments