I'm trying to run a command the last day of the month at 06:00, I tried doing this
$schedule->command('crawl')->when(function () {
return \Carbon\Carbon::now()->endOfMonth()->isToday();
})->at('06:00');
It does run on the last day, but the "at" does not work. Any idea how I can get it to work?