Skip to content

Instantly share code, notes, and snippets.

@Wpkenpachi
Last active November 28, 2017 17:33
Show Gist options
  • Save Wpkenpachi/ecc47d796a7b4bb265f876fe0c8f5400 to your computer and use it in GitHub Desktop.
Save Wpkenpachi/ecc47d796a7b4bb265f876fe0c8f5400 to your computer and use it in GitHub Desktop.
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Jobs\ManageEvents;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')
// ->hourly();
$schedule->command('queue:work')->horly();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment