Skip to content

Commit 45ec3af

Browse files
eduardocruzclaude
andcommitted
fix: replace APP_DEBUG with environment-based gating
Replace the APP_DEBUG check with environment-based gating to fix issue where boost:install command is unavailable when debug=false. The package now only enables in 'local' and 'testing' environments, which is more appropriate for a dev package and aligns with how other Laravel dev tools handle environment gating. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 71b558f commit 45ec3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BoostServiceProvider.php

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

5656
public function boot(Router $router): void
5757
{
58-
if (config('app.debug', false) !== true) {
58+
if (! app()->environment(['local', 'testing'])) {
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)