PHP code example of palpalani / us-holidays-card

1. Go to this page and download the library: Download palpalani/us-holidays-card 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/ */

    

palpalani / us-holidays-card example snippets


namespace App\Nova\Dashboards;

use palPalani\UsHolidaysCard;
use Laravel\Nova\Dashboard;

class Main extends Dashboard
{
    public function cards(): array
    {
        $cards = [
            new UsHolidaysCard(),
        ];
    }
}