定制 intentsolutions/make-crud 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

intentsolutions/make-crud

Composer 安装命令:

composer require intentsolutions/make-crud

包简介

crud maker for laravel

README 文档

README

Installation

Run the installation using composer

composer require intentsolutions/make-crud

open your config/app.php and add this line in providers section

IS\CrudMaker\CrudMakerServiceProvider::class,

run the artisan command

php artisan vendor:publish --provider="IS\CrudMaker\CrudMakerServiceProvider"

you get this files

app
└──  Filters
   ├── BaseFilters.php
   └── Filterable.php

Usage

Crude fields are based on a table in the database.

For example, the fields for the Product entity will be generated based on the products table in the database

php artisan make:crud

After that, you need to enter the name of the entity and select a template

Templates

Api

while creating a crud you will get this structure

if you want to use Swagger/OpenApi you should also install this package https://github.com/DarkaOnLine/L5-Swagger and fill in @OA\Info in your Controller.php

app
├── Http
│   ├── Controllers
│   │   └── EntityController.php
│   ├── Requests
│   │   └── Entity
│   │       └── EntityRequest.php
│   └── Resources
│       └── Entity
│           ├── EntityCollection.php
│           └── EntityResource.php
├── Models
│   ├── Entity.php
├── Repositories
│   └── EntityRepository.php
└── Services
  └── EntityService.php
database
└── factories
   └── EntityFactory.php
tests
└── Feature
   └── EntityTest.php

Default

while creating a crud you will get this structure

app
├── Http
│   ├── Controllers
│   │   └── EntityController.php
│   └── Requests
│       └── Entity
│           └── EntityRequest.php
├── Models
│   └── Entity.php
├── Repositories
│   └── EntityRepository.php
└── Services
  └── EntityService.php
database
└── factories
   └── EntityFactory.php
resources
└── views
  └── entity
      ├── form.blade.php
      ├── list.blade.php
      └── show.blade.php
tests
└── Feature
   └── EntityTest.php

Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2024-07-22