PHPackages                             appel/monetary-attributes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. appel/monetary-attributes

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

appel/monetary-attributes
=========================

Use dollar-based values in your Eloquent models and store them as integers.

v1.1.0(6y ago)1411MITPHPPHP ^7.1

Since Nov 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/avrahamappel/monetary-attributes)[ Packagist](https://packagist.org/packages/appel/monetary-attributes)[ RSS](/packages/appel-monetary-attributes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

**Note: This repository is abandoned in favor of [Eloquent Custom Casts](https://laravel.com/docs/7.x/eloquent-mutators#custom-casts), which were introduced in Laravel 7.**

You can replicate the functionality of this package using Eloquent Custom Casts with the following Cast class:

```
