From c5a749273f800a311930da8e46528f7e8f73d98a Mon Sep 17 00:00:00 2001 From: markus Date: Wed, 31 Jul 2024 15:48:23 +0200 Subject: [PATCH] Use heartbeat driver correctly --- src/Heartbeat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Heartbeat.php b/src/Heartbeat.php index a95980f..b998b0f 100644 --- a/src/Heartbeat.php +++ b/src/Heartbeat.php @@ -37,7 +37,7 @@ public function send(string $slug, int $minutes = 1): void $config = config('butler.health.heartbeat'); - if ($config['driver'] ?? null === 'log') { + if (data_get($config, 'driver') === 'log') { Log::info('heartbeat', ['url' => $url]); return;