terranc/lf-generator
Composer 安装命令:
composer require terranc/lf-generator
包简介
Laravel 5 repository / model generator.
关键字:
README 文档
README
Installation
Step 1
composer install terranc/lf-generator --dev
Step 2
Add the following code to your app/Providers/AppServiceProvider.php file, within the root() method:
if ($this->app->environment() == 'local') { $this->app->register(\Lookfeel\Boilerplate\GeneratorCommandServiceProvider::class); }
Usage
php artisan app:xxx
app
app:attribute Create a new attribute traits for model
app:model Create a new Eloquent model class with attribute, relationship and scope traits
app:name Set the application namespace
app:relationship Create a new relationship traits for model
app:repository Create a new repository class
app:scope Create a new scope traits for model
app:service Create a new service class
Links
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-29