weizong song 2 years ago
parent f985d25615
commit 4cc9b9e6fe

@ -44,7 +44,7 @@ class OrderItems extends SoftDeletesModel
public function product() public function product()
{ {
return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id")->withTrashedParents(); return $this->hasOneThrough(Product::class, ProductItems::class, "id", "id", "product_item_id", "product_id");
} }
public function productItem() public function productItem()

Loading…
Cancel
Save