Viewing file: Kernel.php (1.1 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace App\Console;
use App\Console\Commands\AdPromotionCheck; use App\Console\Commands\ResetDB; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ ResetDB::class, AdPromotionCheck::class, ];
/** * Define the application's command schedule. * * @return void */ protected function schedule(Schedule $schedule) { // $schedule->command('reset:db')->everyMinute(); $schedule->command('reset:db')->twiceDaily(1, 13); $schedule->command('telescope:prune')->daily(); $schedule->command('plan:expired-notice')->daily(); $schedule->command('promotion:check')->twiceDaily(1, 13); }
/** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands');
require base_path('routes/console.php'); } }
|