diff --git a/app/Models/OrderItems.php b/app/Models/OrderItems.php index 3a906f4..350ffce 100755 --- a/app/Models/OrderItems.php +++ b/app/Models/OrderItems.php @@ -44,7 +44,7 @@ class OrderItems extends SoftDeletesModel public function product() { - return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id"); + return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id")->withTrashedParents(); } public function productItem()