Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Oct 28, 2024
1 parent 864ebd8 commit c4cbc5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Checks/DebugModeIsDisabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Bref\LaravelHealthCheck\Check;
use Bref\LaravelHealthCheck\CheckResult;
use Illuminate\Support\Facades\Config;

class DebugModeIsDisabled extends Check
{
Expand All @@ -14,6 +15,6 @@ public function getName(): string

public function check(): CheckResult
{
return config('app.debug') ? $this->error() : $this->ok();
return Config::get('app.debug') ? $this->error() : $this->ok();
}
}

0 comments on commit c4cbc5c

Please sign in to comment.