PHP code example of ingoldsby / laravel-dashboard-chuck-norris-joke-tile
1. Go to this page and download the library: Download ingoldsby/laravel-dashboard-chuck-norris-joke-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/ */
ingoldsby / laravel-dashboard-chuck-norris-joke-tile example snippets
// in config/dashboard.php
return [
// ...
'tiles' => [
'chuck_norris_joke' => [
'refresh_interval_in_seconds' => 900, // this will refresh every 15 minutes
]
],
];
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(\Ingoldsby\ChuckNorrisJokeTile\Commands\FetchChuckNorrisJokeCommand::class)->everyFifteenMinutes();
}