sumflyhighlab / text-combine-number
A Laravel Nova field.
Installs: 124
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sumflyhighlab/text-combine-number
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2025-12-19 08:33:46 UTC
README
A Laravel Nova field which adds additional functionality to the default Number field by using PHP's number_format() function.
Installation
You can install this package in a Laravel app that uses Nova via composer:
composer require sumflyhighlab/text-combine-number
Usage
The TextCombineNumber 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.
You can use the field in your Nova resource like so:
namespace App\Nova; use Sumflyhighlab\TextCombineNumber\TextCombineNumber; class User extends Resource { // ... public function fields(Request $request) { return [ // ... TextCombineNumber::make('Price') ->prefix('$') ->thousandsSeparator(','), TextCombineNumber::make('Markup') ->decimals(0) ->suffix('%') ->min(0)->max(100), // ... ]; } }
Credits
Package skeleton based on simplesquid/nova-advanced-number-field.
About us
This package just build for fun
License
The MIT License (MIT). Please see License File for more information.

