gst
This commit is contained in:
@@ -46,4 +46,15 @@ class Order extends Model
|
||||
->withTimestamps();
|
||||
}
|
||||
|
||||
public function shipmentItems()
|
||||
{
|
||||
return $this->hasMany(\App\Models\ShipmentItem::class, 'order_id', 'id');
|
||||
}
|
||||
|
||||
public function shipments()
|
||||
{
|
||||
return $this->belongsToMany(\App\Models\Shipment::class, 'shipment_items', 'order_id', 'shipment_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user