LaravelPackages.net
Acme Inc.
Toggle sidebar
amidesfahani/nova-persian-date

A Laravel Nova field.

5.589
11
v1.0.5
About amidesfahani/nova-persian-date

amidesfahani/nova-persian-date is a Laravel package for a laravel nova field.. It currently has 11 GitHub stars and 5.589 downloads on Packagist (latest version v1.0.5). Install it with composer require amidesfahani/nova-persian-date. Discover more Laravel packages by amidesfahani or browse all Laravel packages to compare alternatives.

Last updated

nova-persian-date

Persian Date Field for Laravel Nova

Installation

You can install the package via composer:

composer require amidesfahani/nova-persian-date

The package will automatically register itself.

Examples

NovaPersianDate::make('Join Date', 'created_at')
    ->min('lastmonth')
    ->max('nextday')
    ->format('jYYYY-jMM-jDD')
    ->formats([
        'FormField' => 'jYYYY/jMM/jDD HH:mm',
        'IndexField' => 'jYYYY/jMM/jDD',
        'DetailField' => 'jYYYY/jMM/jDD HH:mm'
    ])
    ->humanize()
    ->type('datetime')
    ->sortable(),
.vpd-dir-rtl {
  font-family: 'IranSans'
}
.vpd-dir-ltr {
  font-family: 'Tahoma'
}

Alternatives

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

Star History Chart