PHP code example of techenby / laravel-dashboard-github-tile
1. Go to this page and download the library: Download techenby/laravel-dashboard-github-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/ */
techenby / laravel-dashboard-github-tile example snippets
// in config/dashboard.php
return [
// ...
'tiles' => [
'github' => [
'repos' => [
'techenby/laravel-dashboard-github-tile',
'techenby/radnight',
],
'key' => env('GITHUB_KEY'),
'username' => 'techenby', // use your GitHub Username
],
],
];
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(Techenby\GithubTile\FetchDataFromApiCommand::class)->daily();
}