Kernel.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Console;
  3. use Carbon\Carbon;
  4. use Illuminate\Console\Scheduling\Schedule;
  5. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  6. use Illuminate\Support\Facades\DB;
  7. class Kernel extends ConsoleKernel
  8. {
  9. /**
  10. * The Artisan commands provided by your application.
  11. *
  12. * @var array
  13. */
  14. protected $commands = [
  15. \App\Console\Commands\LogExpireDelete::class,
  16. \App\Console\Commands\MakeServiceCommand::class,
  17. \App\Console\Commands\FluxOrderFix::class,
  18. \App\Console\Commands\InventoryDailyLoggingOwner::class,
  19. ];
  20. /**
  21. * Define the application's command schedule.
  22. *
  23. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  24. * @return void
  25. */
  26. protected function schedule(Schedule $schedule)
  27. {
  28. $schedule->command('LogExpireDelete')->dailyAt('00:01');
  29. $schedule->command('InventoryDailyLoggingOwner')->dailyAt('08:00');
  30. $schedule->command('FluxOrderFix')->hourlyAt(1);
  31. }
  32. /**
  33. * Register the commands for the application.
  34. *
  35. * @return void
  36. */
  37. protected function commands()
  38. {
  39. $this->load(__DIR__ . '/Commands');
  40. require base_path('routes/console.php');
  41. }
  42. }