xielin пре 5 година
родитељ
комит
54b576c223
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      app/Console/Kernel.php

+ 8 - 2
app/Console/Kernel.php

@@ -30,13 +30,19 @@ class Kernel extends ConsoleKernel
     /**
      * Define the application's command schedule.
      *
-     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
+     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
      * @return void
      */
     protected function schedule(Schedule $schedule)
     {
-        $path = storage_path('logs/'.date('Y-m-d').'-schedule.log');
+        $path = storage_path('logs/' . date('Y-m-d') . '-schedule.log');
         $schedule->command('post:calc_weight')
             ->everyFifteenMinutes()->withoutOverlapping()->appendOutputTo($path);
+        $schedule->command('excellent:residents')
+            ->dailyAt('00:05')
+            ->withoutOverlapping()->appendOutputTo($path);
+        $schedule->command('ranking:list')
+            ->dailyAt('00:05')
+            ->withoutOverlapping()->appendOutputTo($path);
     }
 }