aslong/laravel-database-backup

1.0 2019-01-11 01:47 UTC

This package is auto-updated.

Last update: 2022-06-11 10:07:24 UTC


README

1.安装

composer require aslong/laravel-database-backup

2.使用

php artisan db:backup

3.扩展使用

开启定时任务

<?php
namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('db:backup')->daily();
    }
}