Money Field for Laravel Nova
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'),