brokeyourbike/money-casts-laravel
Laravel Eloquent casts for monetary values that convert database amounts into Money objects and back, keeping currency handling clean and consistent across your models.
brokeyourbike/money-casts-laravel adds first-class Money support to Laravel Eloquent models. Instead of juggling raw integers, you cast database columns directly to Money\Money objects, keeping currency and amount handling consistent and type-safe throughout your application.
Wrap amount columns with the provided cast and store values in minor units; the package handles conversion on read and write, so your models expose expressive, immutable Money instances while the database stays simple.
Money\MoneyHow can I help you explore Laravel packages today?