aliromero/nova-jalali-date-field
最新稳定版本:1.0.10
Composer 安装命令:
composer require aliromero/nova-jalali-date-field
包简介
Laravel Nova Jalali/Persian Date/DateTime field.
README 文档
README
A persian/jalali date/datetime resource field for Laravel Nova
Requirements
php: ^8.0laravel/nova: ^4.0
Installation
Install the package into a Laravel app that uses Nova with Composer:
composer require aliromero/nova-jalali-date-field
Usage
Add the field to your resource in the fields method:
use Romero\PersianDateField\PersianDate; use Romero\PersianDateField\PersianDateTime; PersianDate::make('DueOn') ->color('rgb(30, 136, 229)') // customize color ->format('jYYYY/jMM/jDD') // customize display format ->min('lastmonth') // customize min date ->max('today') // customize max date ->locale('fa,en'), // customize locale PersianDateTime::make('PublishedAt') ->color('rgb(30, 136, 229)') // customize color ->format('jYYYY/jMM/jDD HH:mm:ss') // customize display format ->min('lastmonth') // customize min date ->max('today') // customize max date ->locale('fa,en'), // customize locale
The field extends the Laravel\Nova\Fields\Field field, so all the usual methods are available.
It is recommended that you include the standard date_format validation rule, as it is not automatically added.
Credits
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-28