DEV Community

Discussion on: Schedule a task to run at a specific time in laravel (CronJob)

Collapse
 
kimdaiphong profile image
kimdaiphong

Are you sure this works?
As far as I know, Kernel.exe will be run only once. And at the time it is executed, fourthFridayMonthly is always a day of this month, for example $fourthFridayMonthly->format('d') is 29, but are you sure that 29th day of next month is its fourth Friday?

Collapse
 
ekosetiyo13 profile image
EkoSetiyo13

I think its work if add job in server. server can cronjob run command line every day, every week.