Laravel task scheduling SQL data export Excel

Introduction

The Laravel Command Line Scheduler allows you to define a clear and fluid command scheduler in Laravel.

When using this task scheduler, you only need to create a single Cron ingress interface on your server. Your task app/Console/Kernel.phpschedule scheduleis defined in the method of .

app\Console\Kernel.php

<?php

namespace App\Console;

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 = [];

    /**
     * Define the application's command schedule.
     *
     * @param  $schedule
     * @return vo

Guess you like

Origin blog.csdn.net/weiguang102/article/details/124195278