diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 8886296..1e99ce3 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -48,14 +48,15 @@ protected function schedule(Schedule $schedule) $nextRun->save(); } } + else + { + $nextRun = new DailyTaskSchedule; + $nextRun->task = 'my-technology'; + $nextRun->next_run_time = now()->addMinutes(rand(0, 1440))->toTimeString(); + $nextRun->save(); + } } - else - { - $nextRun = new DailyTaskSchedule; - $nextRun->task = 'my-technology'; - $nextRun->next_run_time = now()->addMinutes(rand(0, 1440))->toTimeString(); - $nextRun->save(); - } + })->everyMinute();