Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

Numeric Separator

Readme

Laravel Nova Numeric Field

A Laravel Nova field that automatically adds thousand separator. Perfect for currency, quantities, or any numeric input that needs better readability.

Create Resource

Features

  • Real-time thousand separator formatting (e.g., 1000 → 1.000)
  • Works with copy/paste
  • Maintains numeric value in database
  • Compatible with Laravel Nova 4.x

Requirements

  • Laravel Nova 4.x or higher
  • PHP 7.3 or higher

Installation

You can install the package via composer:

composer require laravelwebdev/numeric

Usage

use Laravelwebdev\Numeric\Numeric;

public function fields(Request $request)
{
    return [
        Numeric::make('Price'),
    ];
}

To change the separator:

use Laravelwebdev\Numeric\Numeric;

public function fields(Request $request)
{
    return [
        Numeric::make('Price')->separator(' '),
    ];
}

That will give you separate space while typing in the input field.

License

The MIT License (MIT).

Back to Top
Added 1 year ago
Last updated 1 Year Ago
Version 1.0.1
Composer
laravelwebdev/numeric
GitHub stars 0
Packagist downloads 44

Favorites

0 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas