Kernel.php 638 B

12345678910111213141516171819202122232425262728
  1. <?php namespace App\Console;
  2. use Illuminate\Console\Scheduling\Schedule;
  3. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  4. class Kernel extends ConsoleKernel
  5. {
  6. /**
  7. * The Artisan commands provided by your application.
  8. *
  9. * @var array
  10. */
  11. protected $commands = [
  12. 'App\Console\Commands\Inspire',
  13. ];
  14. /**
  15. * Define the application's command schedule.
  16. *
  17. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  18. * @return void
  19. */
  20. protected function schedule(Schedule $schedule)
  21. {
  22. $schedule->command('inspire')
  23. ->hourly();
  24. }
  25. }