mziraki/nova-formatted-number-field

This package is abandoned and no longer maintained. No replacement package was suggested.

A Laravel Nova formatted number field.

v0.0.2 2019-03-12 17:39 UTC

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.