You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Kernel.php 568B

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\Inspire',
  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. }