mcmatters/laravel-db-commands
v1.2.1
2020-08-27 20:09 UTC
Requires
- php: >=7.0
- illuminate/console: ^5.2 || 6.* || 7.*
- illuminate/database: ^5.2 || 6.* || 7.*
- illuminate/support: ^5.2 || 6.* || 7.*
README
包含 Laravel 数据库命令的包。
安装
composer require mcmatters/laravel-db-commands
如果您不使用包发现功能,只需在您的 config/app.php
文件中包含服务提供者。
'providers' => [ McMatters\LaravelDbCommands\ServiceProvider::class, ]
用法
可用命令
php artisan db:drop-tables
— 删除所有表。php artisan migrate:single {"file" or "class"}
— 通过文件名或类名迁移单个迁移。php artisan migrate:drop-single {"file" or "class"}
— 通过文件名或类名删除单个迁移。