1. Go to this page and download the library: Download downtime-desk/laravel 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/ */
downtime-desk / laravel example snippets
use DowntimeDesk\Laravel\Facades\DowntimeDesk;
DowntimeDesk::report();
DowntimeDesk::report('database');
DowntimeDesk::reportNow();
DowntimeDesk::ping($id, $secret);
DowntimeDesk::withoutScheduling();
DowntimeDesk::withoutAggregation();
DowntimeDesk::defaultMonitor('example');
DowntimeDesk::limitBatchSizeTo(50);
function ($schedule, $name) {
return $schedule->job(new DispatchHeartbeat($name))->everyMinute();
}
DowntimeDesk::registerScheduleWith($callable);
DowntimeDesk::useCacheKeyName();
use Illuminate\Support\Facades\Schedule;
Schedule::downtimeDesk('default')
->everyMinute();