PHP code example of justgetschwifty / laravel-stack-health

1. Go to this page and download the library: Download justgetschwifty/laravel-stack-health 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/ */

    

justgetschwifty / laravel-stack-health example snippets


final class QueueConnectionCheck implements StackHealthCheckContract
{
    public static function id(): string
    {
        return 'queue_connection';
    }

    public function run(): array
    {
        return [new StackHealthItemResult('Queue connection', true, 'Queue is configured')];
    }
}
bash
php artisan vendor:publish --tag=stack-health-lang
php artisan vendor:publish --tag=stack-health-views