Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Installation Instructions

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

  public function card()
  {
      return [
         (new WorldClock())
            ->timezones([
                'Asia/Tokyo',
                'Asia/Dubai',
                'America/new_york',
                'America/los_angeles',
            ]),
      ];
  } 

Credits

Abdullah Algethami

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

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

Readme

World Clock

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

Abdullah Algethami

Support:

naif@naif.io

https://www.linkedin.com/in/naif

License:

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

Screenshots

Back to Top
Added 7 years ago
Last updated 6 Years Ago
Version v1.7
Composer
naif/world-clock
GitHub stars 6
Packagist downloads 17,542

Favorites

5 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Tags

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas