定制 lathanhvien/novaofdatetime 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lathanhvien/novaofdatetime

Composer 安装命令:

composer require lathanhvien/novaofdatetime

包简介

Display Laravel Nova date time field with pickerFormat support.

README 文档

README

Installation

$ composer require lathanhvien/novaofdatetime

Usage

use Pifpif\NovaOfDateTime\OfDateTime;

OfDateTime::make('Foobar')
    ->format('DD-MM-YYYY HH:mm:ss') 
    // ->pickerFormat('d_m_Y H:i:S') 
    // ->pickerConvert('DD_MM_YYYY HH:mm:ss')
    ->pickerFormat('d-m-Y H:i:S') 
    ->pickerConvert('DD-MM-YYYY HH:mm:ss')
    ->rules('required', 'date_format:Y-m-d H:i:s')
    ->firstDayOfWeek(1)

Configuration

This package is an improvement of DateTime Nova package.
It add option function pickerConvert to make a convert from pickerFormat (for Display) to momentFormat (for Vuejs).
Check pickerFormat conventions on this page:
https://flatpickr.js.org/formatting/
Check momentFormat conventions on this page:
https://momentjs.com/docs/#/parsing/string-format/

Support

If you have any ideas about this package, feel free to contact me at gmail: b.thanhdung@gmail.com or skype: xprotoprotox

License

This package is available under the MIT license.

统计信息

  • 总下载量: 373
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固