Skip to content

Comments

Add BLAZE_ENABLED and BLAZE_DEBUG env config#44

Merged
ganyicz merged 1 commit intomainfrom
filip/env-config
Feb 20, 2026
Merged

Add BLAZE_ENABLED and BLAZE_DEBUG env config#44
ganyicz merged 1 commit intomainfrom
filip/env-config

Conversation

@ganyicz
Copy link
Collaborator

@ganyicz ganyicz commented Feb 20, 2026

The scenario

Toggling Blaze on/off or enabling debug mode during development.

The problem

The only way to disable Blaze or enable debug mode is by calling Blaze::disable() or Blaze::debug() in a service provider. This means the change ends up in your committed code, which we don't want — it's easy to accidentally ship a Blaze::disable() call to production.

The solution

Add a config/blaze.php config file with BLAZE_ENABLED and BLAZE_DEBUG env vars:

return [
    'enabled' => env('BLAZE_ENABLED', true),
    'debug' => env('BLAZE_DEBUG', false),
];

BlazeManager reads these values on construction, and the config is publishable via php artisan vendor:publish --tag=blaze:config.

@ganyicz ganyicz merged commit 9cbb5b3 into main Feb 20, 2026
6 checks passed
@joshhanley joshhanley deleted the filip/env-config branch February 21, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant