diff --git a/src/LaravelDebugbar.php b/src/LaravelDebugbar.php index f8202db67..8638a91fc 100644 --- a/src/LaravelDebugbar.php +++ b/src/LaravelDebugbar.php @@ -585,7 +585,7 @@ public function isEnabled(): bool public function isStorageOpen(Request $request): bool { // Additional safeguards that may never have storage open - if (!$this->isEnabled() || !config('app.debug') || app()->isProduction()) { + if (!static::canBeEnabled() || !$this->isEnabled()) { return false; }