mwi/laravel-crud 问题修复 & 功能扩展

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

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

mwi/laravel-crud

Composer 安装命令:

composer require mwi/laravel-crud

包简介

MWI Crud setup for Laravel Projects

README 文档

README

We have put together a CRUD command. It will set up all the core files necessary to create a well put together CRUD. Routes and Views will need to be added separately given the complexity of some applications.

The files included are:

  • model
  • controller
  • API controller
  • handler (service)
  • policy
  • request
  • management (trait for additional route method)
  • helpers (trait for manipulating data)
  • transformer (for fractal with API)
  • views (basic crud views)
  • tests (feature and unit examples)

For command help

$ php artisan -h make:crud

Required Arguments

First argument is the name of the model. Second Argument is the plural version.

$ php artisan make:crud SalesTerritory SalesTerritories

Migration

By default this command will also create a migration for the new model. If you'd prefer to not create the migration use the --no-migration option.

$ php artisan make:crud SalesTerritory SalesTerritories --no-migration

Specific Resources

By default the command will create all of the resources available. If you only need a few resources you may use the --with option. This will prompt for you to specify which resources you need.

$ php artisan make:crud SalesTerritory SalesTerritories --with

API Resources

If you wish to create the resources for an API you may use the --api option. This will generate a base ApiController if one does not exist along with an api specific controller on top of the normal controller for the model.

$ php artisan make:crud SalesTerritory SalesTerritories --api

All of these options may be used in conjunction with one another to produce the desired resources.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固