Advertisement
Guest User

Untitled

a guest
Apr 12th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php namespace parrot\Console;
  2.  
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  5.  
  6. class Kernel extends ConsoleKernel {
  7.  
  8.     /**
  9.      * The Artisan commands provided by your application.
  10.      *
  11.      * @var array
  12.      */
  13.     protected $commands = [
  14.         'parrot\Console\Commands\Inspire',
  15.     ];
  16.  
  17.     /**
  18.      * Define the application's command schedule.
  19.      *
  20.      * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  21.      * @return void
  22.      */
  23.     protected function schedule(Schedule $schedule)
  24.     {
  25.         $schedule->command('inspire')
  26.                  ->hourly();
  27.     }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement