承接 chipaau/support 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

chipaau/support

Composer 安装命令:

composer create-project chipaau/support

包简介

laravel framework based, integrated with jsonapi support library with extended validation support

README 文档

README

This package includes a bunch of generators out of the box:

  • support:resource
  • support:resource:controller
  • support:resource:model
  • support:resource:repository
  • support:resource:request
  • support:resource:route
  • support:resource:schema
  • support:resource:validator

More features are on their way

Usage

Step 1: Install Through Composer

composer require chipaau/support --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(\Support\SupportServiceProvider::class);
	}
}

Step 3: Run Artisan!

You're all set. Run php artisan from the console, and you'll see the new commands in the support:* namespace section.

Examples

Creating full resource bundles

php artisan support:resource ResourceOne ResourceTwo ResourceThree ...

Notice the format that we use, when giving the command more than 1 resource to create, we separate them with spaces

This would create the whole bundle required for the support module to work. This bundle includes:

  • Resource controller
  • Resource model
  • Resource repository
  • Resource request
  • Adding the Resource route to the routes file
  • Resource schema
  • Resource validator

Creating individual elements of resource

php artisan support:resource:controller ResourceOne ResourceTwo ResourceThree ...

This would create the controllers for the required resources. This could be used with all the other available artisan commands.

Generating resources for modules

php artisan vendor:publish --tag="support"

This would copy the configuration file required for modular file generation to the config directory.

php artisan support:resource ResourceOne ResourceTwo ResourceThree ... --module="ModuleName"

This would create the whole bundle required for the support module, inside the modules folder included in the config/support.php configuration file. This could be used with all the other available artisan commands.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固