dpsoft / nova-number-format
A Laravel Nova field.
Installs: 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-12-23 13:48:16 UTC
README
Description
number_fromat values for index view ,Detail view and Forms, especially on typing values
Installation
You can install the nova theme into a Laravel app that uses Nova via composer:
composer require dpsoft/nova-number-format
Usage
<?php
namespace App\Nova;
use Dpsoft\NumberFormat\NumberFormat;
class Credit extends Resource
{
/**
* Get the fields displayed by the resource.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function fields(Request $request)
{
return [
NumberFormat::make('Amount', 'amount')->required(),
];
}