Kernel.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. * The Artisan commands provided by your application.
  9. *
  10. * @var array
  11. */
  12. protected $commands = [
  13. \App\Console\Commands\LogExpireDelete::class,
  14. \App\Console\Commands\MakeServiceCommand::class,
  15. \App\Console\Commands\FluxOrderFix::class,
  16. \App\Console\Commands\InventoryDailyLoggingOwner::class,
  17. \App\Console\Commands\WASSyncWMSOrderInformation::class,
  18. ];
  19. /**
  20. * Define the application's command schedule.
  21. *
  22. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  23. * @return void
  24. */
  25. protected function schedule(Schedule $schedule)
  26. {
  27. $schedule->command('LogExpireDelete')->dailyAt('00:01');
  28. $schedule->command('InventoryDailyLoggingOwner')->dailyAt('08:00');
  29. $schedule->command('FluxOrderFix')->hourlyAt(1);
  30. // $schedule->command('FluxOrderFix')->cron('* * * * *');
  31. $schedule->command('WASSyncWMSOrderInformation')->everyMinute();
  32. }
  33. /**
  34. * Register the commands for the application.
  35. *
  36. * @return void
  37. */
  38. protected function commands()
  39. {
  40. $this->load(__DIR__ . '/Commands');
  41. require base_path('routes/console.php');
  42. }
  43. }