$schedule->command('...')->weekdays()->hourlyAt('55');
Which days and at what hours does this command work?
CodePudding user response:
weekdays()
means that it will be executed on every day except the weekend, so only on Monday, Tuesday, Wednesday, Thursday, and Friday.
hourlyAt('55')
means that it will be executed every hour at 55 minutes. So 0:55, 1:55, 2:55, 3:55, ..., 22:55, and 23:55.
These two methods together mean that the given command will be executed every hour at minute 55 on Monday, Tuesday, Wednesday, Thursday, and Friday.