Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Installation Instructions

Installation

Install the package with composer using the following command:

composer require swooinc/nova-countdown

Usage

You can pass it a Carbon instance for the countdown.

use Swooinc\NovaCountdown\NovaCountdown;

...

protected function cards()
{
  return [
    (new NovaCountdown)->to(now()->addDays(30))
      ->label('30 Days Later'),
  ];
}

Readme

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.

Screenshots

Back to Top
Added 7 years ago
Last updated 5 Years Ago
Version v1.0.4
Nova Version *
Composer
swooinc/nova-countdown
GitHub stars 12
Packagist downloads 24,480

Favorites

8 users favorited

Rating

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

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas