PHP code example of creacoon / laravel-dashboard-gitlab-user-counts-tile
1. Go to this page and download the library: Download creacoon/laravel-dashboard-gitlab-user-counts-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/ */
creacoon / laravel-dashboard-gitlab-user-counts-tile example snippets
// in config/dashboard.php
return [
// ...
'tiles' => [
'gitlab' => [
'api_token' => env('GITLAB_API_TOKEN'),
'api_url' => env('GITLAB_API_URL', 'https://gitlab.com'),
'specific_users' => explode(',', env('GITLAB_SPECIFIC_USERS')),
],
],
];
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(\Creacoon\GitLabTile\FetchDataFromGitLabUserCountsCommand::class)->everyMinute();
}
bash
php artisan vendor:publish --provider="Creacoon\GitLabTile\GitLabUserCountsTileServiceProvider" --tag="dashboard-gitlab-user-counts-tile-views"