Kernel.php 590 B

123456789101112131415161718192021222324252627282930
  1. <?php namespace App\Console;
  2. use Exception;
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  5. class Kernel extends ConsoleKernel {
  6. /**
  7. * The Artisan commands provided by your application.
  8. *
  9. * @var array
  10. */
  11. protected $commands = [
  12. 'App\Console\Commands\InspireCommand',
  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. }