PHP code example of tylerwoonton / laravel-dashboard-health-check-tile
1. Go to this page and download the library: Download tylerwoonton/laravel-dashboard-health-check-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/ */
tylerwoonton / laravel-dashboard-health-check-tile example snippets
// config/dashboard.php
return [
// ...
'tiles' => [
'health_check' => [
'sites' => [
'Example App' => [
"url" => 'https://example.app/health',
"headers" => [], // optional
"options" => [] // optional
]
],
'timeout' => 3,
'show_failures' => true,
'refresh_interval' => 60
],
],
];
// app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(\TylerWoonton\HealthCheckTile\Commands\FetchHealthCheckDataCommand::class)->everyMinute();
}
bash
php artisan vendor:publish --provider="TylerWoonton\HealthCheckTile\HealthCheckTileServiceProvider" --tag="dashboard-health-check-tile-views"