Skip to content

flxsource/nova-clock-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Clock Card

A clock card for Laravel Nova

Installation

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

composer require chris-ware/nova-clock-card

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

// in app/Providers/NovaServiceProvder.php

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

Customization

You are able to customize date & time formats, locale and timezone. By default locale and timezone is taken from config/app.php

// in app/Providers/NovaServiceProvder.php

// ...
public function cards()
{
    return [
        // ...
        (new \ChrisWare\NovaClockCard\NovaClockCard)
            ->locale('sk')
            ->dateFormat('dddd, Do MMMM YYYY')
            ->timeFormat('LTS')
            ->timezone('UTC'),
    ];
}

Information

This card will pull in your set timezone from config/app.php and use it to display the date and time.

About

A clock card for Laravel Nova

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 67.3%
  • Vue 26.8%
  • JavaScript 5.5%
  • CSS 0.4%