![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/app/Console/ |
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { $env = config('app.env'); $email = config('mail.username'); if ($env === 'live') { //Scheduling backup, specify the time when the backup will get cleaned & time when it will run. $schedule->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'); } 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'); } }