Artisan Console第二章介绍过Migrations, 当时我们只是介绍了,它可以帮助我们生成数据库表结构,但是当时只是在一个库里面生成的,结合到DHB3.0。
我们有业务很多库,所以需要在多个业务库生成表结构。
创建一个指令php artisan make:command DHBMigrate
//注册指令
//app/Console/Kernel.php的$commands里面添加
Continue reading
