call(function () { for ($i = 0; $i < 2; $i++) { \Illuminate\Support\Facades\Artisan::call('product:sync-prices'); if ($i < 1) { sleep(30); } } })->everyMinute()->name('sync_product_prices_30s')->withoutOverlapping(); $schedule->command('prices:refresh-zaarbox') ->everyThirtyMinutes() ->name('refresh_zaarbox_prices') ->withoutOverlapping(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }