swooinc/nova-countdown

A countdown card for Laravel Nova.
24,567 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.

156,452 33
annaghd/php-credit-card-validator-plus

Validates popular debit and credit cards numbers against regular expressions and...

13,608 1
spatie/nova-backup-tool

A Laravel Nova tool to backup your application.

609,777 359
maatwebsite/laravel-nova-excel

Supercharged Excel exports for Laravel Nova Resources

7,184,779 401
jpmurray/laravel-countdown

Provide an easy class easy way to get the time difference between two dates, wit...

3,825 84

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