Вход Регистрация
Файл: app/Console/Kernel.php
Строк: 75
<?php

namespace AppConsole;

use 
IlluminateConsoleSchedulingSchedule;
use 
IlluminateFoundationConsoleKernel as ConsoleKernel;

class 
Kernel extends ConsoleKernel
{
    
/**
     * The Artisan commands provided by your application.
     *
     * @var array
     */
    
protected $commands = [
        
'AppConsoleCommandsClearRecentsCommand',
        
'AppConsoleCommandsVerifyUserLimitsCommand',
        
'AppConsoleCommandsEmailReportsCommand',
        
'AppConsoleCommandsClearUnverifiedUsersCommand',
    ];

    
/**
     * Define the application's command schedule.
     *
     * @param  IlluminateConsoleSchedulingSchedule  $schedule
     * @return void
     */
    
protected function schedule(Schedule $schedule)
    {
        if (
config('settings.email_reports_period') == 'weekly') {
            
$schedule->command('cron:email-reports')->weeklyOn(1'6:00');
        } else {
            
$schedule->command('cron:email-reports')->monthlyOn(1'6:00');
        }
        
$schedule->command('cron:verify-user-limits')->dailyAt('00:05');
        
$schedule->command('cron:clear-recents')->daily();
        
$schedule->command('cron:clear-unverified-users')->dailyAt('03:00');
        
$schedule->command('cache:clear')->weeklyOn(0'4:00');
        
$schedule->command('view:clear')->weeklyOn(0'5:00');
        
$schedule->command('auth:clear-resets')->weeklyOn(0'6:00');
    }

    
/**
     * Register the commands for the application.
     *
     * @return void
     */
    
protected function commands()
    {
        
$this->load(__DIR__.'/Commands');

        require 
base_path('routes/console.php');
    }
}
Онлайн: 3
Реклама