New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

simplesquid/nova-advanced-number-field

A Laravel Nova field which adds additional functionality to the default Number field.
173,017 11
Install
composer require simplesquid/nova-advanced-number-field
Latest Version:v3.3.0
PHP:^8.2
Laravel:11 · 12
Older releases:9 · 10
License:MIT
Last Updated:Mar 27, 2025
Links: GitHub  ·  Packagist
Maintainer: simplesquid

An advanced number field for Laravel Nova

Latest Version on Packagist Tests Code styling MIT License Total Downloads

A Laravel Nova field which adds additional functionality to the default Number field by using PHP's number_format() function.

Screenshot of the advanced number field

Installation

You can install this package in a Laravel app that uses Nova via composer:

composer require simplesquid/nova-advanced-number-field

Usage

The AdvancedNumber field provides an additional 5 methods to the default Number field, namely:

  • ->prefix('$'): Sets the prefix to be used when displaying the number.
  • ->thousandsSeparator(' '): Set the thousands separator symbol to be used when displaying the number.
  • ->decimalPoint('.'): Sets the decimal point symbol to be used when displaying the number.
  • ->decimals(3): Sets the number of decimal points to be used as well as the step value.
  • ->suffix('%'): Sets the suffix to be used when displaying the number.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Package skeleton based on spatie/skeleton-php.

About us

SimpleSquid is a small web development and design company based in Valkenburg, Netherlands.

License

The MIT License (MIT). Please see License File for more information.

Related Packages

dniccum/phone-number

A Laravel Nova phone number field with input masking and validation support.

502,981 70
simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

458,319 52
timothyasp/nova-color-field

A Laravel Nova Color Picker field.

1,864,197 76
alexwenzel/nova-dependency-container

A Laravel Nova 4 form container for grouping fields that depend on other field v...

1,409,536 46
inspheric/nova-url-field

A Laravel Nova URL field.

1,363,468 102

Version History

Version Released PHP Laravel License
v3.3.0 ^8.2 ^11.0 || ^12.0 MIT
v3.2.0 ^8.1 ^10.0 || ^11.0 MIT
v3.1.0 ^8.0 ^9.0|^10.0 MIT
v3.0.0 ^8.0 ^9.0 MIT
v2.0.0 >=7.3.0 MIT