Kernel.php 859 B

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