dpsoft/nova-number-format

A Laravel Nova field.

v1.0 2021-01-18 07:21 UTC

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(),
        ];
    }

Screenshots

nova-number-format