xamani/nova-persian-number

Laravel Nova Number field with display of Persian letters.

2.0 2022-08-20 13:58 UTC

This package is auto-updated.

Last update: 2024-03-20 17:12:55 UTC


README

This package allows the user to set up a field in Nova that forms and converts numbers to Farsi letters.

Installation

You can install the package via composer:

composer require xamani/nova-persian-number

for nova 3 or above

composer require xamani/nova-persian-number:^1.0

Usage

use Xamani\NovaPersianNumber;

PersianNumber::make('Price')
    ->format('0,0')   // Defaults to "0,0"
    ->moneyUnit('تومان') // You can also use the null value 

License

The MIT License (MIT).