xamani/number-format

A Laravel Nova field.

1.0 2022-08-27 08:34 UTC

This package is auto-updated.

Last update: 2024-04-27 12:27:19 UTC


README

With this package, you can display and enter numbers in the field in a format.

using the numeral.js library.

Installation

You can install the package via composer:

composer require xamani/number-format

Usage

use Xamani\NumberFormat;

NumberFormat::make('Price')
    ->format('0,0')   // Defaults to "0,0"

License

The MIT License (MIT).