mziraki / nova-formatted-number-field
A Laravel Nova formatted number field.
Installs: 9 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 1
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2020-10-15 18:26:55 UTC
README
A formatted number input field for Laravel Nova
Installation
Install the package into a Laravel app that uses Nova with Composer:
composer require mziraki/nova-formatted-number-field
Usage
Add the field to your resource in the fields
method:
use MZiraki\Fields\FormattedNumber; FormattedNumber::make('Price') ->rules('numeric', /* ... */),
The field extends the Laravel\Nova\Fields\Number
field, so all the usual methods are available.
It is recommended that you include the standard numeric
validation rule, as it is not automatically added.
The field is displayed as an <input type="text">
element.