juniora/nova-persian-date-field

Laravel Nova Persian Datetime Picker

v1.0.1 2024-07-23 16:19 UTC

This package is not auto-updated.

Last update: 2024-11-13 16:13:53 UTC


README

Laravel Nova Persian Date Field

Installation

You can install the package via composer:

composer require juniora/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

Vue Persian DateTime Picker

Licence

This project is licensed under the MIT License