wiwatsrt / nova-number-field
A Laravel Nova field.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-10-12 04:56:34 UTC
README
use numeral.js for formatted number
Installation
composer require wiwatsrt/nova-number-field
Usage
namespace App\Nova; use Wiwatsrt\NovaNumberField\NovaNumberField as Currency; class Invoice extends Resource { // ... public function fields(Request $request) { return [ // ... Currency::make('Subtotal') ->format('0,0.00'), // ... ]; } }