Kernel.php 698 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\AddBimToConvertQueue;
  4. use Illuminate\Console\Scheduling\Schedule;
  5. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  6. class Kernel extends ConsoleKernel
  7. {
  8. /**
  9. * Define the application's command schedule.
  10. */
  11. protected function schedule(Schedule $schedule): void
  12. {
  13. // $schedule->command('inspire')->hourly();
  14. $schedule->command(AddBimToConvertQueue::class)->everyFiveMinutes();
  15. }
  16. /**
  17. * Register the commands for the application.
  18. */
  19. protected function commands(): void
  20. {
  21. $this->load(__DIR__.'/Commands');
  22. require base_path('routes/console.php');
  23. }
  24. }