Files
spa-api/app/Console/Kernel.php

31 lines
590 B
PHP
Raw Normal View History

<?php namespace App\Console;
use Exception;
2014-11-18 22:48:38 -06:00
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel {
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
'App\Console\Commands\InspireCommand',
];
/**
2014-11-18 22:48:38 -06:00
* Define the application's command schedule.
*
2014-11-18 22:48:38 -06:00
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
2014-11-18 22:48:38 -06:00
protected function schedule(Schedule $schedule)
{
2014-11-19 19:49:18 -06:00
$schedule->command('inspire')
2014-11-18 22:48:38 -06:00
->hourly();
}
}