Laravel Currency Casting
Cast your integer currency columns automatically to a float in your Laravel application!
- Version v1.2.3
This package adds a Laravel model cast. This way you can cast any attribute that stores a currency, with an integer value in the database, to a float automatically!
You can install the package using Composer:
composer require snoeren-development/laravel-currency-casting
You can view this package on GitHub.
Laravel 8 support!
Fixed a rounding issue when using more than 2 digits.
Added support for more than 2 digits.
Fixed full number bug and forced the get method to return a float at all times.