command('backup:clean')->daily()->at('01:00'); $schedule->command('backup:run')->daily()->at('01:30'); //Schedule to create recurring invoices $schedule->command('pos:generateSubscriptionInvoices')->dailyAt('23:30'); $schedule->command('pos:updateRewardPoints')->dailyAt('23:45'); $schedule->command('pos:autoSendPaymentReminder')->dailyAt('8:00'); $schedule->command('managementtools:send-executive-brief')->dailyAt('07:30'); } if (in_array($env, ['live', 'local'], true)) { $schedule->command('accounting:maintenance')->dailyAt('06:30'); $schedule->command('accounting:sync-exchange-rates')->dailyAt('06:15'); } if ($env === 'demo') { //IMPORTANT NOTE: This command will delete all business details and create dummy business, run only in demo server. $schedule->command('pos:dummyBusiness') ->cron('0 */3 * * *') //->everyThirtyMinutes() ->emailOutputTo($email); } } /** * Register the Closure based commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }