Laravel Currency Casting
Cast your integer currency columns automatically to a float in your Laravel application!
-
Open Source
- Version v1.3.0
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!
Installation
You can install the package using Composer:
composer require snoeren-development/laravel-currency-casting
You can view this package on GitHub.
-
Version v1.3.007-12-2020
PHP 8.0 support! :tada:
-
Version v1.2.524-11-2020
Updated dependencies.
-
Version v1.2.413-11-2020
Updated dependencies.
-
Version v1.2.310-09-2020
Laravel 8 support!
-
Version v1.2.203-09-2020
Updated dependencies.
-
Version v1.2.128-08-2020
Fixed a rounding issue when using more than 2 digits.
-
Version v1.2.027-08-2020
Added support for more than 2 digits.
-
Version v1.1.107-07-2020
Added null-handling.
-
Version v1.1.007-07-2020
Fixed full number bug and forced the get method to return a float at all times.
-
Version v1.0.007-07-2020