|
|
|
|
@ -44,7 +44,9 @@ class OrderItems extends SoftDeletesModel
|
|
|
|
|
|
|
|
|
|
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")
|
|
|
|
|
->withoutGlobalScope(\App\Scopes\AdminProjectScope::class)
|
|
|
|
|
->withTrashedParents();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function productItem()
|
|
|
|
|
|