phucpm/generators
最新稳定版本:1.4
Composer 安装命令:
composer require phucpm/generators
包简介
Module generators.
关键字:
README 文档
README
Step 1: Install Through Composer
composer require phucpm/generators --dev
Step 2: Add the Service Provider
You'll only want to use these generators for local development, so you don't want to update the production providers array in config/app.php. Instead, add the provider in app/Providers/AppServiceProvider.php, like so:
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register('PhucPM\Generators\GeneratorsServiceProvider');
}
}
Step 3: Run Artisan!
You're all set. Run php artisan from the console, and you'll see the new commands in the make:* namespace section.
Examples
Basic Example
php artisan make:module Category --namespace=IZee
Or
php artisan make:module Category --namespace=IZee --only="delete,index"
Or
php artisan make:module Category --namespace=IZee --except="delete,index"
Step 4: Add the Service Provider
Instead, add the provider in app/Providers/AppServiceProvider.php, like so:
public function register()
{
$this->app->singleton('App\IZee\Categories\CategoryRepositoryInterface', 'App\IZee\Categories\DbCategoryRepository');
}
统计信息
- 总下载量: 157
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-21