File "Kernel.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/app/Console/Kernel.php
File size: 1.15 KB
MIME-type: text/x-php
Charset: utf-8
<?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)
{
$schedule->command('email:send-order-payment-reminder')->weeklyOn(1, '9:00')->timezone('America/Los_Angeles'); //Every Mon at 9 AM
$schedule->command('email:send-order-artwork-reminder')->twiceDailyAt(8, 16)->timezone('America/Los_Angeles'); // Frequency twice a day
$schedule->command('email:send-po-orders-reminder')->cron('0 0 */2 * *')->timezone('America/Los_Angeles'); // Send after every two days
// $schedule->command('email:send-po-orders-reminder')->daily()->timezone('America/Los_Angeles'); // Send daily
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}