marcuschristiansen/formatted-number

A Laravel Nova field.

0.2 2019-10-25 12:15 UTC

This package is auto-updated.

Last update: 2024-03-22 23:38:20 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).