{"repo":"cknow/laravel-money","free":true,"listed":false,"github":"https://github.com/cknow/laravel-money","clone":"git clone https://github.com/cknow/laravel-money.git","description":"Laravel Money.","language":"PHP","stars":1045,"topics":["laravel","monet","currency"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel Money Note: This project abstracts MoneyPHP Installation Run the following command from you terminal: or add this to require section in your composer.json file: then run composer update Usage Configuration The defaults are set in config/money.php . Copy this file to your own config directory to modify the values. You can publish the config using this command: This is the contents of the published file: Advanced Usage See MoneyPHP for more information Create your formatter Rules Below is a list of all available validation rules and their function: currency The field under validation must be a valid currency. money The field under validation must be a valid money. Casts At this stage the cast can be defined in the following ways: In the example above, if the model attribute currency is null , the currency defined in the package configuration is used instead. Setting money can be done in several ways: When we pass the model attribute holding the currency, such attribute is updated as well when setting money: Helpers Blade Extensions","default_branch":null,"files":null,"tree":[],"storefront":"/r/cknow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cknow/laravel-money/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}