Skip to content

Commit 3d11215

Browse files
authored
Merge pull request #90 from eduardocruz/fix/environment-based-gating
Fix: Replace APP_DEBUG with environment-based gating
2 parents ad4c684 + ff7e169 commit 3d11215

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BoostServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function register(): void
5555

5656
public function boot(Router $router): void
5757
{
58-
if (config('app.debug', false) !== true) {
58+
// Only enable Boost on local environments
59+
if (! app()->environment(['local', 'testing']) && config('app.debug', false) !== true) {
5960
return;
6061
}
6162

0 commit comments

Comments
 (0)