Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| <?php | |
| namespace App\Console; | |
| 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 = [ | |
| Commands\Hosts::class, | |
| Commands\Network::class | |
| ]; | |
| /** | |
| * Define the application's command schedule. | |
| * | |
| * @param \Illuminate\Console\Scheduling\Schedule $schedule | |
| * @return void | |
| */ | |
| protected function schedule(Schedule $schedule) | |
| { | |
| $schedule->command('hosts:fetch 0')->hourly()->withoutOverlapping(); | |
| $schedule->command('hosts:fetch 1')->everyMinute()->withoutOverlapping(); | |
| $schedule->command('network')->hourly()->withoutOverlapping(); | |
| } | |
| /** | |
| * Register the Closure based commands for the application. | |
| * | |
| * @return void | |
| */ | |
| protected function commands() | |
| { | |
| require base_path('routes/console.php'); | |
| } | |
| } |