答案 0 :(得分:2)
在Laravel 5中,您不需要第三方生成器程序包来创建迁移(或应用程序的大多数其他组件)。您可以使用artisan make
命令。
要创建迁移,您需要使用:
php artisan make:migration create_users_table
Artisan默认提供了许多生成器,您可以通过运行php artisan
来查看。
make:command Create a new command class
make:console Create a new Artisan command
make:controller Create a new resource controller class
make:event Create a new event class
make:job Create a new job class
make:listener Create a new event listener class
make:middleware Create a new middleware class
make:migration Create a new migration file
make:model Create a new Eloquent model class
make:policy Create a new policy class
make:provider Create a new service provider class
make:request Create a new form request class
make:seeder Create a new seeder class
make:test Create a new test class