LaravelPackages.net
Acme Inc.
Toggle sidebar
laravelwebdev/numeric

A Laravel Nova field.

45
0
1.0.1
About laravelwebdev/numeric

laravelwebdev/numeric is a Laravel package for a laravel nova field.. It currently has 0 GitHub stars and 45 downloads on Packagist (latest version 1.0.1). Install it with composer require laravelwebdev/numeric. Discover more Laravel packages by laravelwebdev or browse all Laravel packages to compare alternatives.

Last updated

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).

Star History Chart