A Laravel Nova field to display currency number format.
lathanhvien/nova-text-currency is a Laravel package for a laravel nova field to display currency number format..
It currently has 0 GitHub stars and 9.505 downloads on Packagist (latest version v1.0.0).
Install it with composer require lathanhvien/nova-text-currency.
Discover more Laravel packages by lathanhvien
or browse all Laravel packages to compare alternatives.
Last updated
$ composer require lathanhvien/nova-text-currency
use Pifpif\NovaTextCurrency\Currency;
Currency::make('Total','total')->sign('8364'),
Or:
Currency::make('Total','total'),
Optional function sign create currency symbol, base on decimal currency symbol code. It will show on 3 pages: Index, Detail, Form (edit or create)! Example:
Currency::make('Total','total')->sign('8364'),
Will create Euro currency symbol. You can use more currency symbol by reference UTF-8 Currency Symbols
If just use Dollar symbol, use it by default:
Currency::make('Total','total'),
Or without any symbol, use it by this:
Currency::make('Total','total')->sign('32'),
If you have any ideas about this package, feel free to contact me at gmail: [email protected] or skype: xprotoprotox
This package is available under the MIT license.