aravel 5已经集成很多 genarators 命令,扩展artisan
make:migration:schema
make:migration:pivot
make:seed
通过以下方式安装genarators
# 安装
composer require laracasts/generators --dev
# 编辑app/Providers/AppServiceProvider.php
(只应用本地环境)
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
}
}
# 查看 则多了几个make 命令
php artisan
参照官方文档
https://github.com/laracasts/Laravel-5-Generators-Extended