Fix the method, isEmpty, in the Cart model.

This commit is contained in:
2023-06-18 17:35:09 +03:00
parent 0c2f6355cf
commit 76f6c699aa
+1 -1
View File
@@ -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) {