Skip to content

v1.12.0

Choose a tag to compare

@yuriizee yuriizee released this 22 Jul 12:12

v1.12.0

Added

  • MoneyCast and ValueObjects\Money — a small immutable money value object (minor units + currency) instead of floats. Accepts int minor units, a decimal string, an ['amount' => ..., 'currency' => ...] array, or an existing Money on hydration; serializes back to int minor units. Currency is fixed per field via the cast constructor and validated on both directions; raw float input is rejected. Decimal-string parsing never goes through float, so amounts round deterministically regardless of binary float representation.