1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace App\Console;
- use App\Utils\CacheKey;
- use Illuminate\Console\Scheduling\Schedule;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- use Illuminate\Support\Facades\Cache;
- class Kernel extends ConsoleKernel
- {
-
- protected $commands = [
-
- ];
-
- protected function schedule(Schedule $schedule)
- {
- Cache::put(CacheKey::get('SCHEDULE_LAST_CHECK_AT', null), time());
-
- $schedule->command('v2board:statistics')->dailyAt('0:10');
-
- $schedule->command('check:order')->everyMinute();
- $schedule->command('check:commission')->everyMinute();
- $schedule->command('check:ticket')->everyMinute();
-
- $schedule->command('reset:traffic')->daily();
- $schedule->command('reset:serverLog')->quarterly()->at('0:15');
-
- $schedule->command('send:remindMail')->dailyAt('11:30');
-
- $schedule->command('horizon:snapshot')->everyFiveMinutes();
- }
-
- protected function commands()
- {
- $this->load(__DIR__ . '/Commands');
- require base_path('routes/console.php');
- }
- }
|