承接 sandipmahto/testcrud 相关项目开发

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

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

sandipmahto/testcrud

最新稳定版本:v1.0.0

Composer 安装命令:

composer require sandipmahto/testcrud

包简介

Demo CRUD package for testing

README 文档

README

Package Name: sandipmahto/testcrud
Description: Demo CRUD package for testing in Laravel projects.
Author: Sandip Mahto
License: MIT

1️⃣ Introduction

TestCRUD is a fully functional CRUD package for Laravel.
It allows you to manage products with minimal setup.

Features:

  • Create, Read, Update, Delete products
  • Predefined routes, controller, model, and migrations
  • Optional config publishing

2️⃣ Requirements

  • PHP >= 8.0
  • Laravel >= 10.x (tested on Laravel 12.37.0)
  • Composer

3️⃣ Installation

Step 1: Install via Composer

composer require sandipmahto/testcrud


Step 2: Run Migrations
php artisan migrate


Step 3: Optional Config Publish
php artisan vendor:publish --provider="Sandipmahto\TestCrud\TestCrudServiceProvider" --tag=config


4️⃣ Package Structure
packages/sandipmahto/testcrud/
├── composer.json
├── LICENSE
├── README.md
├── src/
│   ├── TestCrudServiceProvider.php
│   ├── routes.php
│   ├── Models/
│   │   └── Product.php
│   └── Http/
│       └── Controllers/
│           └── ProductController.php
└── database/
    └── migrations/
        └── 2025_11_12_000000_create_products_table.php



Routes

All routes are prefixed with /testcrud:

Method	URI	Controller Method
GET	/testcrud/products	ProductController@index
POST	/testcrud/products	ProductController@store
GET	/testcrud/products/{id}	ProductController@show
PUT	/testcrud/products/{id}	ProductController@update
DELETE	/testcrud/products/{id}	ProductController@destroy


6️⃣ CRUD Usage Examples
GET All Products
GET /testcrud/products



POST /testcrud/products
Content-Type: application/json

{
  "name": "Demo Product",
  "price": 199.99,
  "description": "Testing"
}


{
  "id": 1,
  "name": "Demo Product",
  "price": "199.99",
  "description": "Testing",
  "created_at": "...",
  "updated_at": "..."
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-12