whereIn('address_type', [ self::ADDRESS_TYPE_BILLING, self::ADDRESS_TYPE_SHIPPING ]); }); } /** * Get the shipping rates for the cart address. */ public function shipping_rates() { return $this->hasMany(CartShippingRateProxy::modelClass()); } /** * Get the cart record associated with the address. */ public function cart() { return $this->belongsTo(Cart::class); } }