PHP code example of owenvoke / laravel-dashboard-pihole-tile

1. Go to this page and download the library: Download owenvoke/laravel-dashboard-pihole-tile 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/ */

    

owenvoke / laravel-dashboard-pihole-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'pihole' => [
            'url' => env('PIHOLE_URL'),
            'key' => env('PIHOLE_KEY'),
        ],
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\OwenVoke\PiholeTile\Commands\FetchPiholeSummaryCommand::class)->everyTenMinutes();

    // Required for the "Top items" tile
    $schedule->command(\OwenVoke\PiholeTile\Commands\FetchPiholeTopItemsCommand::class)->everyTenMinutes();
}