belongsTo(OrderProxy::modelClass()); } /** * Get the shipment items record associated with the shipment. */ public function items() { return $this->hasMany(ShipmentItemProxy::modelClass()); } /** * Get the inventory source associated with the shipment. */ public function inventory_source() { return $this->belongsTo(InventorySource::class, 'inventory_source_id'); } /** * Get the customer record associated with the shipment. */ public function customer() { return $this->morphTo(); } /** * Get the addresses for the shipment. */ public function address() { return $this->belongsTo(OrderAddressProxy::modelClass(), 'order_address_id'); } }