定制 kaysr/crud-maker 二次开发

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

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

kaysr/crud-maker

最新稳定版本:1.0.0

Composer 安装命令:

composer require kaysr/crud-maker

包简介

This package created CRUD prototype to save time

README 文档

README

A simple, customizable CRUD generator for Laravel projects.

Features

  • Generates basic CRUD structure with a single command
  • Creates Model, Migration, Controller, Service class, and Request classes
  • Supports multiple response types: View, JSON, or Inertia
  • Streamlines the process of setting up new CRUD operations in Laravel

Installation

You can install the package via composer:

composer require kaysr/crud-maker

Usage

To generate a new CRUD structure, use the following command:

php artisan make:crud {ModelName}

The command will prompt you to choose the type of response you want to return (View, JSON, or Inertia).

Generated Files

For each CRUD operation, this package generates the following files:

  1. Model
  2. Migration
  3. Controller
  4. Service class
  5. Two Request classes:
    • One for the store method
    • One for the update method

Customization

The generated files provide a basic structure and need to be filled with your specific data and logic. This allows for maximum flexibility while still saving time on initial setup.

License

MIT

About

This package was created for personal use to streamline CRUD creation in Laravel projects. So I hope that others might find it useful.

统计信息

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

GitHub 信息

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

其他信息

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