Kernel.php 650 B

12345678910111213141516171819202122232425262728
  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('inspire')->hourly();
  13. $schedule->command("app:publish-scheduled-articles")->everyMinute();
  14. }
  15. /**
  16. * Register the commands for the application.
  17. */
  18. protected function commands(): void
  19. {
  20. $this->load(__DIR__.'/Commands');
  21. require base_path('routes/console.php');
  22. }
  23. }