amidesfahani / nova-persian-date-field
Laravel Nova Persian Datetime Picker
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:Vue
Requires
- php: ^7.3|^8.0
- laravel/nova: ^4.0
This package is auto-updated.
Last update: 2024-11-07 23:41:03 UTC
README
Laravel Nova Persian Date Field
If you are using Nova 3, please refer to this repository.
Installation
You can install the package via composer:
composer require amidesfahani/nova-persian-date-field
The package will automatically register itself.
Examples
PersianDate::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' }
Credits
Licence
This project is licensed under the MIT License