naif/world-clock
Composer 安装命令:
composer require naif/world-clock
包简介
A Laravel Nova card to display world clocks
README 文档
README
A Laravel Nova card to display world clock
Installation:
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/world-clock
Usage:
Add the below to app/Providers/NovaServiceProvder.php
namespace App\Providers; [...] use Naif\WorldClock\WorldClock; class NovaServiceProvider extends NovaApplicationServiceProvider { [...] public function card() { return [ (new WorldClock()) ->timezones([ 'Asia/Tokyo', 'Asia/Dubai', 'America/new_york', 'America/los_angeles', ]) ->timeFormat('h:i') //Optional time format default is: 'h:i:s' ->updatePeriod(1000) //Optional to set updating time period in millisecond default is 1000 ms = 1 second ]; } [...] }
Credits
Support:
https://www.linkedin.com/in/naif
License:
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 17.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-03
