Skip to content

Commit d6d748c

Browse files
committed
README.md 使用文档
1 parent 8dbb2a8 commit d6d748c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Laravel Database Backup
2+
3+
## 1.安装
4+
> composer require aslong/laravel-database-backup
5+
6+
## 2.使用
7+
> php artisan db:backup
8+
9+
## 3.扩展使用
10+
11+
开启定时任务
12+
13+
~~~
14+
<?php
15+
namespace App\Console;
16+
17+
use Illuminate\Console\Scheduling\Schedule;
18+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
19+
20+
class Kernel extends ConsoleKernel
21+
{
22+
protected function schedule(Schedule $schedule)
23+
{
24+
$schedule->command('db:backup')->daily();
25+
}
26+
}
27+
~~~

0 commit comments

Comments
 (0)