From 7726ab1769faf867913704b2aa471b8027fe4791 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Tue, 11 Nov 2025 14:07:13 +0700 Subject: [PATCH] fix(model): salah model untuk relasi ke OrderItem --- app/Models/Bottle.php | 2 +- app/Models/Perfume.php | 2 +- app/Models/Product.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/Bottle.php b/app/Models/Bottle.php index bdb0577..48f9b1f 100644 --- a/app/Models/Bottle.php +++ b/app/Models/Bottle.php @@ -50,6 +50,6 @@ public function purchaseItems(): MorphMany public function items(): MorphMany { - return $this->morphMany(PurchaseItem::class, 'orderable'); + return $this->morphMany(OrderItem::class, 'orderable'); } } diff --git a/app/Models/Perfume.php b/app/Models/Perfume.php index d900dbe..cc716b2 100644 --- a/app/Models/Perfume.php +++ b/app/Models/Perfume.php @@ -60,6 +60,6 @@ public function purchaseItems(): MorphMany public function items(): MorphMany { - return $this->morphMany(PurchaseItem::class, 'orderable'); + return $this->morphMany(OrderItem::class, 'orderable'); } } diff --git a/app/Models/Product.php b/app/Models/Product.php index 02be9c4..11c3e4d 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -47,6 +47,6 @@ public function purchaseItems(): MorphMany public function items(): MorphMany { - return $this->morphMany(PurchaseItem::class, 'orderable'); + return $this->morphMany(OrderItem::class, 'orderable'); } }