rimu/formatted-number

A Laravel Nova field.

0.2 2019-10-25 12:15 UTC

This package is auto-updated.

Last update: 2024-10-26 02:20:04 UTC


README

This package allows the user to set up a field in Nova that is formatted using the numeral.js library.

Installation

You can install the package via composer:

composer require rimu/formatted-number

Usage

use Rimu\FormattedNumber;

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

License

The MIT License (MIT).