1. Go to this page and download the library: Download mindtwo/laravel-monitoring 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/ */
namespace App\Monitoring;
use Mindtwo\Monitoring\Collectors\AbstractCollector;
use Mindtwo\Monitoring\Data\CollectionResult;
final class HorizonCollector extends AbstractCollector
{
public function key(): string
{
return 'horizon';
}
public function collect(): CollectionResult
{
return CollectionResult::ok($this->key(), [
'status' => 'running',
]);
}
}