mziraki / nova-persian-date-filter
Laravel Nova Jalali/Persian Date/DateTime filter.
v1.1
2024-12-21 20:02 UTC
Requires
- php: ^8.0
- laravel/nova: ^4.0|^5.0
This package is auto-updated.
Last update: 2024-12-21 20:04:16 UTC
README
A persian/jalali date/datetime resource filter for Laravel Nova
Requirements
php: ^8.0
laravel/nova: ^4.0
Installation
Install the package into a Laravel app that uses Nova with Composer:
composer require mziraki/nova-persian-date-filter
Usage
Extend MZiraki\PersianDateFilter\PersianDateFilter
:
use MZiraki\PersianDateFilter\PersianDateFilter; class DueOn extends PersianDateFilter {...}
Add the field to your resource in the filters
method:
use App\Nova\Filters\DueOn; DueOn::make() ->color('rgb(30, 136, 229)') // customize color ->locale('fa,en') // customize locale ->type('date'), // date or datetime
The filter extends the Laravel\Nova\Filters\Filter
filter, so all the usual methods are available.