[英]Generate package is not working on Laravel 5
In Laravel 5, you don't need a third party generator package to create migrations (or most other components of your application). 在Laravel 5中,您不需要第三方生成器包即可创建迁移(或应用程序的大多数其他组件)。 You can use the
artisan make
command. 您可以使用
artisan make
命令。
To create a migration you need to use: 要创建迁移,您需要使用:
php artisan make:migration create_users_table
There are a number of generators provided by Artisan by default, which you can see by running php artisan
. 默认情况下,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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.