PHP code example of marlonbasten / ohdear-croncheck-laravel
1. Go to this page and download the library: Download marlonbasten/ohdear-croncheck-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/ */
marlonbasten / ohdear-croncheck-laravel example snippets
public function boot(): void
{
OhDearCron::register(TestCommand::class, 'id');
}
return [
// If false, cronjobs will always be sent to OhDear
'only_in_prod' => true,
// The ping URL for OhDear (https://ohdear.app/docs/features/cron-job-monitoring#php)
'ohdear_url' => 'https://ping.ohdear.app',
];
public function boot(): void
{
\Marlonbasten\OhdearCroncheckLaravel\Facades\OhDearCron::register(TestCommand::class, 'id');
}