siteset/laravel-dump
Composer 安装命令:
composer require siteset/laravel-dump
包简介
Dump database tables with records as JSON for Laravel Framework
关键字:
README 文档
README
Installation
Add the package record to the 'require' section of the composer.json file.
"require": { ..., "siteset/laravel-dump": "^1.0@dev" },
Update the package with Composer:
composer update siteset/laravel-dump
Setup
Bind command to application kernel /app/Console/Kernel.php
protected $commands = [ \Siteset\Dump\Console\DumpCommand::class, ];
Add DumpServiceProvider into /config/app.php
'providers' => [ ..., Siteset\Dump\DumpServiceProvider::class, ..., ],
Refresh Composer Autoload
composer dump-autoload
Renew or create configuration file (you can delete old file)
php artisan vendor:publish --provider="Siteset\Dump\DumpServiceProvider"
Usage
Execute command db:json to make dump:
php artisan db:json
JSON dump will be created at directory /database/dumps/dump_YYYY-MM-DD_HH-II-SS
You can change it by options --path and --folder
统计信息
- 总下载量: 118
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-31