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
annaghd/php-credit-card-validator-plus
Validates popular debit and credit cards numbers against regular expressions and...
13,608
1
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 |