From 64ad524507921ca9e1cd044d7360ee72031240ef Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Wed, 30 Aug 2023 04:17:29 +0300 Subject: [PATCH] fix is active --- src/Models/Department.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Department.php b/src/Models/Department.php index 375d41b..3b64b21 100644 --- a/src/Models/Department.php +++ b/src/Models/Department.php @@ -69,6 +69,6 @@ public function image(): ?string public function scopeDepartments(Builder $query): void { - $query->where('is-active', true)->orderBy('ordering'); + $query->where('is_active', true)->orderBy('ordering'); } }