PHP code example of getecz / laravel-health

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

    

getecz / laravel-health example snippets


// app/Console/Kernel.php
$schedule->command('getecz:health-heartbeat')->everyMinute();
bash
php artisan vendor:publish --tag=getecz-health-config
bash
php artisan getecz:health-heartbeat
bash
php artisan vendor:publish --tag=getecz-health-migrations
php artisan migrate
bash
php artisan getecz:health-snapshot
php artisan getecz:health-snapshot --prune