定制 chris-ware/nova-clock-card 二次开发

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

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

chris-ware/nova-clock-card

最新稳定版本:1.2.0

Composer 安装命令:

composer require chris-ware/nova-clock-card

包简介

A Laravel Nova card to display the date and time.

README 文档

README

A clock card for Laravel Nova

Latest Stable Version Total Downloads License StyleCI

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require chris-ware/nova-clock-card

Next, you must register the card with Nova. This is typically done in the cards method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php

// ...
public function cards()
{
    return [
        // ...
        new \ChrisWare\NovaClockCard\NovaClockCard,
    ];
}

Customization

You are able to customize date & time formats, locale and timezone and display type. By default locale and timezone is taken from config/app.php. The default display type is text. The analogue display type is also available.

// in app/Providers/NovaServiceProvder.php

// ...
public function cards()
{
    return [
        // ...
        (new \ChrisWare\NovaClockCard\NovaClockCard)
            ->locale('sk')
            ->dateFormat('dddd, Do MMMM YYYY')
            ->timeFormat('LTS')
            ->timezone('UTC')
            ->display('analogue'),
    ];
}

Information

This card will pull in your set timezone from config/app.php and use it to display the date and time.

统计信息

  • 总下载量: 37.11k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 3
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-25