bymega/timezones

用于展示 Laravel 5 时间的示例包

1.0 2017-09-26 20:23 UTC

This package is auto-updated.

Last update: 2024-09-29 05:01:27 UTC


README

显示各种时区的当前时间。这是一个简单的示例。

安装

使用 composer 安装

composer require bymega/timezones

config/app.php 中注册 provider

Bymega\Timezones\TimezonesServiceProvider::class,

使用以下命令发布文件

php artisan vendor:publish --tag=timezones --force

使用

示例 URL /timezones 或 /timezones/Europe-London。