mcmatters/laravel-db-commands

v1.2.1 2020-08-27 20:09 UTC

This package is auto-updated.

Last update: 2024-08-28 04:47:50 UTC


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"} — 通过文件名或类名删除单个迁移。