PHP code example of swooinc / nova-countdown
1. Go to this page and download the library: Download swooinc/nova-countdown library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
swooinc / nova-countdown example snippets
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'),
];
}
}