承接 p7/struct-core 相关项目开发

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

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

p7/struct-core

最新稳定版本:v1.1

Composer 安装命令:

composer require p7/struct-core

包简介

Create service and repository migration model controller files

README 文档

README

This Laravel package provides a convenient Artisan command to generate CRUD (Create, Read, Update, Delete) files for a specified model. It automates the creation of model, controller, service, and repository files, allowing you to quickly set up CRUD operations for your application.

Installation

To install the package, simply require it via Composer:

composer require p7/struct-core

Usage

After installing the package, you can use the make:crud command to generate CRUD files for a specific model. Here's how to use it:

php artisan core:crud ModelName

Replace ModelName with the name of your model. This command will generate the following files:

Model: app/Models/ModelName.php Controller: app/Http/Controllers/ModelNameController.php Service: app/Services/ModelNameService.php Repository: app/Repositories/ModelNameRepository.php

Or you can create each file separately

php artisan core:repository ModelName
php artisan core:helper ModelName
php artisan core:service ModelName

Example

Let's say you have a model named Product and you want to create CRUD files for it. You can run the following command:

php artisan make:crud Product

This will generate the necessary files for CRUD operations on the Product model.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request on GitHub.

License

This package is open-source software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-01