LaravelPackages.net
Acme Inc.
Toggle sidebar
amidesfahani/nova-world-clock

A Laravel Nova card.

9.636
0
v0.1
About amidesfahani/nova-world-clock

amidesfahani/nova-world-clock is a Laravel package for a laravel nova card.. It currently has 0 GitHub stars and 9.636 downloads on Packagist (latest version v0.1). Install it with composer require amidesfahani/nova-world-clock. Discover more Laravel packages by amidesfahani or browse all Laravel packages to compare alternatives.

Last updated

Nova World Clock Card

A Laravel Nova card to display World Clocks

Installation:

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

composer require amidesfahani/nova-world-clock

Usage:

Add the below to app/Providers/NovaServiceProvder.php

namespace App\Providers;

[...]

use AmidEsfahani\NovaWorldClock\NovaWorldClock;

class NovaServiceProvider extends NovaApplicationServiceProvider
{

[...]

  public function card()
  {
      return [
         (new NovaWorldClock())
            ->timezones([
                'Asia/Tehran',
                '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
            ->title(__('World Clock'))
            ->showTitle(true)
      ];
  }

[...]

}

License:

The MIT License (MIT). Please see License File for more information.

Star History Chart