(亲测支持表前缀),然后使用composer安装库
composer require kitloong/laravel-migrations-generator
之后使用laravel的artisan就可以逆向生成迁移文件了...,table3,table4,table5"
# 忽略指定表并生成迁移
php artisan migrate:generate --ignore="table3,table4,table5"
# 指定连接并生成迁移...,用逗号分隔,如: users,posts,comments
-i, --ignore[=IGNORE] 您希望忽略生成迁移的表或视图的列表,用逗号分隔,如:users,posts,comments
-...时间必须通过 Carbon::parse去格式化
--table-filename[=TABLE-FILENAME] 自定义表迁移文件名,默认为: [datetime]\_create_[name]_table.php...--skip-views 跳过视图
--skip-proc 跳过存储过程
--squash 将所有迁移文件合并至一个文件中
--with-has-table 使用 hasTable 检查是否存在表
结尾