您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }