diff --git a/app/Models/Cart.php b/app/Models/Cart.php index b5ac2f1..af601ee 100644 --- a/app/Models/Cart.php +++ b/app/Models/Cart.php @@ -37,7 +37,7 @@ class Cart extends Model } public function isEmpty() { - return $this->items()->isEmpty(); + return count($this->items()->pluck('item_id')->toArray()); } public function setCity(City $city) {