sashalenz / nova-money-field
A Laravel Nova field for Money.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
- moneyphp/money: ^3.1
This package is auto-updated.
Last update: 2024-10-23 22:38:14 UTC
README
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require sashalenz/nova-money-field
Usage
In resource:
// ... use Sashalenz\NovaMoneyField\Money; public function fields(Request $request) { return [ // ... Money::make('Balance'), ]; }
You may use locale
method to define locale for formatting value, by default value will be formatted using browser locale:
Money::make('Balance')->locale('ru-RU'),