richardkeep/nova-timenow 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

richardkeep/nova-timenow

Composer 安装命令:

composer require richardkeep/nova-timenow

包简介

A Laravel Nova card to display the current time from different timezones in the world.

README 文档

README

Latest Version on Packagist Style CI Total Downloads

A Laravel Nova card to display the current time from different timezones in the world.

screenshot of the timenow card

Version L5.6 L5.7 L5.8 L6 L7 L8 L9
1.*
2.*

Installation

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

composer require richardkeep/nova-timenow

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

// in app/Providers/NovaServiceProvder.php

// ...

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

Customization

By default, the system's timezone and America\Mexico_City will be used as the list of timezones. To override this, please add more valid timezones.

public function cards()
{
    return [
        // ...
        (new \Richardkeep\NovaTimenow\NovaTimenow)->timezones([
            'Africa/Nairobi',
            'America/Mexico_City',
            'Australia/Sydney',
            'Europe/Paris',
            'Asia/Tokyo',
        ])->defaultTimezone('Africa/Nairobi'),
    ];
}

Usage

The card will be automatically displayed on the dashboard. You can now select the timezone from the dropdown list of registered timezones to view the current time in that region,

统计信息

  • 总下载量: 49.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固