skip to Main Content

Customize cron runtime in laravel?

I have a file Commands/DateUpdate.php protected $signature = 'date:update'; public function handle() { $listSchedule = Schedule::where('dateSchedule', '=', strtotime('now'))->get()->toArray(); $dateSchedule = []; foreach ($listSchedule as $value) { $dateSchedule[] = $value['dateSchedule']; } var_dump($dateSchedule); // result // array(3) { // [0]=> // string(16)…

VIEW QUESTION
Back To Top
Search