Kernel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace App\Console;
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  5. class Kernel extends ConsoleKernel
  6. {
  7. /**
  8. * Define the application's command schedule.
  9. */
  10. protected function schedule(Schedule $schedule): void
  11. {
  12. $schedule->command('serviceTimer')->everyFiveMinutes();
  13. $schedule->command('node:detection')->everyTenMinutes();
  14. $schedule->command('autoClearLogs')->everyThirtyMinutes();
  15. $schedule->command('task:hourly')->hourly();
  16. $schedule->command('task:daily')->dailyAt('00:05');
  17. $schedule->command('node:maintenance')->dailyAt('09:30');
  18. $schedule->command('userTrafficWarning')->dailyAt('10:30');
  19. $schedule->command('userExpireWarning')->dailyAt('20:30');
  20. $schedule->command('task:auto')->everyMinute();
  21. $schedule->command('task:monthly')->monthly();
  22. }
  23. /**
  24. * Register the commands for the application.
  25. */
  26. protected function commands(): void
  27. {
  28. $this->load(__DIR__.'/Commands');
  29. require base_path('routes/console.php');
  30. }
  31. }