Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
app
/
Console
:
Kernel.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'); } }