承接 kemboielvis/laravel-crud-generator 相关项目开发

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

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

kemboielvis/laravel-crud-generator

最新稳定版本:v1.3.1

Composer 安装命令:

composer require kemboielvis/laravel-crud-generator

包简介

A laravel CRUD generator

README 文档

README

This package is a Laravel CRUD generator that will generate CRUD code for you simply. This package will reduce the time to create a module in Laravel.

It generates the following code:

  • Model
  • Controller
  • Store and Update Request
  • Resource

Installation

  1. Run
composer require kemboielvis/laravel-crud-generator --dev
  1. To generate Code for specefic model

    The model name should be inside the App/Models Directory

    For the CRUD to be generated fill out the fillables then run the command below

php artisan crud:generate {ModelName}
  1. Generate code for all model in App/Models/**

    For the crud to be generated fill out all the fillables then run the command below

    php artisan crud:generate

The code will be generated in the following directories:

  • Controllers: App/Http/Controllers
  • StoreRequest: App/Http/Requests/{ModelName}/StoreRequest.php
  • UpdateRequest: App/Http/Requests/{ModelName}/UpdateRequest.php
  • Resource: App/Http/Resources/{ModelName}/{ModelName}Resource.php

Warning

When using this code generator you should be careful because it will overwrite the existing files and written code

License

The Laravel CRUD Generator is open-sourced software licensed under the MIT license.

For new Features and Bugs and Suggestions

If you have any new features or bugs you can create an issue or create a pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-02