command('intranet:sync-vacations')->twiceDaily(); // $schedule->command('karat:sync-users')->daily(); // $schedule->command('karat:sync-clients')->daily(); // $schedule->command('karat:sync-projects')->daily(); // $schedule->command('karat:sync-timesheets')->daily(); // } if (env('APP_ENV') === 'prod' && env('LXC') === '1') { $schedule->command('intranet:sync-vacations')->twiceDaily(); $schedule->command('karat:sync-users')->daily(); $schedule->command('karat:sync-clients')->hourly(); $schedule->command('karat:sync-projects')->everyFiveMinutes(); $schedule->command('karat:sync-projects-name')->hourly(); $schedule->command('karat:sync-timesheets')->everyFiveMinutes(); $schedule->command('office365:sync')->everyFiveMinutes(); $schedule->command('office365:finish-subtasks')->hourly(); } } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__ . '/Commands'); require base_path('routes/console.php'); } }