File: D:/HostingSpaces/BVerhoeven/verhoevendak.nl/app/Console/Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
\App\Console\Commands\RemindOpenAudits::class,
\App\Console\Commands\RemindRejectedAudits::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// Remind the member that there is an open audit on the 01-02 each year at 7.30 UTC (is 8.30 in netherlands)
$schedule->command('reminder:open-audits first-reminder')->cron('30 7 1 2 * ');
// Remind the member that there is an open audit on the 15-03 at 7.30 UTC (is 8.30 in netherlands)
$schedule->command('reminder:open-audits second-reminder')->cron('30 7 15 3 * ');
// Remind the member that the deadline of the rejected audits is in two weeks
// Run daily at 7.30 UTC (is 8.30 in netherlands)
$schedule->command('reminder:rejected-audits')->dailyAt('07:30');
//Run the queue listener every hour, if it is still running, do nothing
$schedule->command('queue:listen')->hourly()->withoutOverlapping();
}
}