@ -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()