New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

swooinc/nova-countdown

A countdown card for Laravel Nova.
24,577 12
Install
composer require swooinc/nova-countdown
Latest Version:v1.0.4
PHP:>=7.1.0
Laravel:5 – 8
License:MIT
Last Updated:Apr 10, 2024
Links: GitHub  ·  Packagist
Maintainer: ChinLeung

Nova Countdown

A countdown card for Laravel Nova.

Installation

Install the package with composer using the following command:

composer require swooinc/nova-countdown

Usage

You can pass a Carbon instance for the countdown.

<?php

namespace App\Nova;

use Swooinc\NovaCountdown\NovaCountdown;

class User extends Resource
{
    // Other methods
    
    /**
     * Get the cards available for the request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function cards(Request $request)
    {
        return [
            (new NovaCountdown)
                ->to(now()->addDays(30))
                ->label('30 Days Later'),
        ];
    }
}

License

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

Related Packages

stepanenko3/nova-cards

A Laravel Nova info cards.

157,693 33
epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,703,233 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,631,018 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,888,853 616
spatie/nova-tags-field

A tags field for Nova apps

2,356,168 301

Version History

Version Released PHP Laravel License
v1.0.4 >=7.1.0 ~5.6.0|~5.8.0|^6.0|^7.0|^8.0 MIT
v1.0.3 >=7.1.0 ~5.6.0|~5.8.0|^6.0|^7.0 MIT
v1.0.2 >=7.1.0 ~5.6.0|~5.8.0|^6.0|^7.0 MIT
v1.0.1 >=7.1.0 ~5.6.0|~5.8.0|^6.0 MIT
1.0.0 >=7.1.0 ^5.6 MIT