Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
This package has been marked as abandoned on Packagist. Please proceed with care.

Installation Instructions

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,
    ];
}

Readme

Nova Clock Card

A clock card for Laravel Nova

Latest Stable Version Total Downloads License StyleCI

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 and display type. By default locale and timezone is taken from config/app.php. The default display type is text. The analogue display type is also available.

// in app/Providers/NovaServiceProvder.php

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

Information

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

Back to Top
Added 7 years ago
Last updated 7 Years Ago
Version 1.2.0
Composer
chris-ware/nova-clock-card
GitHub stars 9
Packagist downloads 37,074

Favorites

2 users favorited

Rating

5.00
(out of 5)
★★★★★
★★★★
★★★
★★
3 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas