weizong song 2 years ago
parent e4355db774
commit 661751f9ba

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

Loading…
Cancel
Save