Kernel.php 575 B

1234567891011121314151617181920212223242526272829
  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. * The Artisan commands provided by your application.
  7. *
  8. * @var array
  9. */
  10. protected $commands = [
  11. 'App\Console\Commands\InspireCommand',
  12. ];
  13. /**
  14. * Define the application's command schedule.
  15. *
  16. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  17. * @return void
  18. */
  19. protected function schedule(Schedule $schedule)
  20. {
  21. $schedule->command('inspire')
  22. ->hourly();
  23. }
  24. }