From 9583ea5dab6cd6c6d213b16733a7f883218e1eeb Mon Sep 17 00:00:00 2001 From: Riccardo Venturini Date: Thu, 29 Aug 2024 16:27:51 +0200 Subject: [PATCH] rename colum from 'failed' to 'status' in scopeFailed --- src/Models/Monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Monitor.php b/src/Models/Monitor.php index f3faac1..e0cfd1f 100644 --- a/src/Models/Monitor.php +++ b/src/Models/Monitor.php @@ -110,7 +110,7 @@ public function scopeToday(Builder $query): void public function scopeFailed(Builder $query): void { - $query->where('failed', MonitorStatus::FAILED); + $query->where('status', MonitorStatus::FAILED); } public function scopeSucceeded(Builder $query): void