larawos/generators 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

larawos/generators

Composer 安装命令:

composer require larawos/generators

包简介

Larawos's generators for laravel 5.3

README 文档

README

If you are using laravel to develop large projects, you will find that you spend a lot of time to write some extra but necessary classes and methods.

This package will allow you to develop more easily and quickly, only this.

L5 includes a bunch of generators out of the box, so this package only needs to add a few things, like:

  • larawos:module

With one or two more to come.

Usage

Step 1: Install Through Composer

composer require larawos/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('Larawos\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 larawos:* namespace section.

Examples

Modules

php artisan larawos:module User
COLUMN_NAME:COLUMN_TYPE

Using the except or only when you need...

--except="store_request"
--only="model,repository,controller"

...this will give you:

  • model
  • attribute and relationship trait for model
  • repository and contract for model.
  • controller.
  • service for controller.
  • a lot of common request.
  • persenter for view.
  • optimized bind and route for module.

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固