Laravel 任务调度 SQL 数据导出 Excel

简介

Laravel 命令行调度器允许你在 Laravel 中对命令调度进行清晰流畅的定义。

使用这个任务调度器时,你只需要在你的服务器上创建单个 Cron 入口接口。你的任务调度在 app/Console/Kernel.phpschedule 方法中进行定义。

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

猜你喜欢

转载自blog.csdn.net/weiguang102/article/details/124195278