swooinc/nova-countdown
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
epartment/nova-dependency-container
A Laravel Nova field container allowing to depend on other fields values
4,703,233
378
ebess/advanced-nova-media-library
Laravel Nova tools for managing the Spatie media library.
3,888,853
616
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.0.4 | >=7.1.0 | ~5.6.0| | MIT | |
| v1.0.3 | >=7.1.0 | ~5.6.0| | MIT | |
| v1.0.2 | >=7.1.0 | ~5.6.0| | MIT | |
| v1.0.1 | >=7.1.0 | ~5.6.0| | MIT | |
| 1.0.0 | >=7.1.0 | ^5.6 | MIT | |
| 0.0.1 | >=7.1.0 | ^5.6 | MIT |