mwguerra/crud-artisan
Composer 安装命令:
composer require mwguerra/crud-artisan
包简介
A Laravel package to generate CRUD controllers and Vue components for Inertia.js
README 文档
README
CRUD Artisan is a Laravel package designed to accelerate development by simplifying the creation of CRUD (Create, Read, Update, Delete) operations. With a series of intuitive Artisan commands, developers can generate models, controllers, views, and routes for their application's entities, focusing more on developing unique features rather than boilerplate code.
Features
- Generate complete CRUD operations with a single command.
- Customizable templates for views, models, and controllers.
- Support for Laravel's latest versions.
- Easy integration into existing Laravel projects.
- Configuration options to tailor the CRUD operations to your project's needs.
Installation
You can install the package via Composer. Run the following command in your Laravel project:
composer require mwguerra/crud-artisan
After installation, publish the package's configuration file to customize the templates and settings:
php artisan vendor:publish --provider="Mwguerra\CrudArtisan\CrudArtisanServiceProvider"
Usage
To create a complete CRUD for an entity, run:
php artisan make:crud NameOfYourEntity
This command will generate:
- A Model for the entity.
- A Controller with methods for creating, reading, updating, and deleting the entity.
- Views for each of the CRUD operations.
- Routes for accessing the CRUD operations.
Customizing Templates
You can customize the templates used for generating views, models, and controllers by editing the published configuration file and the template files in the resources/views/vendor/crud-artisan directory.
Configuration
The config/crud-artisan.php file allows you to define defaults and behaviors for the CRUD generation. You can specify namespaces, paths, and template specifics.
Contributing
Contributions are welcome and will be fully credited. Please see CONTRIBUTING for details.
License
The CRUD Artisan package is open-sourced software licensed under the MIT license.
Support
If you have any questions or encounter issues, please open an issue on the GitHub repository.
mwguerra/crud-artisan 适用场景与选型建议
mwguerra/crud-artisan 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 02 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mwguerra/crud-artisan 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mwguerra/crud-artisan 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-17