Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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