定制 naingminkhant/simple-crud 二次开发

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

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

naingminkhant/simple-crud

最新稳定版本:v1.0.1

Composer 安装命令:

composer require naingminkhant/simple-crud

包简介

A Laravel package to auto-generate simple CRUD API (migration, model, controller, repository, route).

README 文档

README

A developer-friendly package to quickly scaffold CRUD operations in Laravel — including models, migrations, controllers, repositories, routes, and views — using a single Artisan command. It use my another package, (naingminkhant/myrepo) which handle CRUD operations, error handling, and logging,

🚀 Features

  • ✅ Generate Eloquent Model and Migration
  • ✅ Generate Repository class
  • ✅ Generate API or MVC-style Controller
  • ✅ Append route to api.php or web.php
  • ✅ Generate empty Blade view files (index, create, edit, show)
  • ✅ Automatically add $guarded = [] to your model

📦 Installation

Require the package via Composer:

composer require naingminkhant/simple-crud

🧪 Usage

For MVC

php artisan simple-crud {ModelName}

It will create model, migration, MVC style controller, repository, append routes in web.php, and generate basic view files.

For API

php artisan simple-crud {ModelName} --api

It will generate all CRUD endpoints for provided model.

Developers only need to provide columns for migration file and run

php artisan migrate

You can now try testing by calling endpoints.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-06-25