sabbir268 / induxia-crud

这是一个为 Induxia 模板设计的 CURD 工具

v0.1.1 2024-08-02 05:13 UTC

This package is auto-updated.

Last update: 2024-10-02 05:40:07 UTC


README

Induxia CRUD 生成器是一个 Laravel 扩展包,旨在简化为资源生成完整 CRUD 操作的过程。它根据 YAML 配置文件生成模型、迁移、控制器、视图和数据库 CRUD 操作。

安装

  1. 通过 Composer 安装包

    composer require sabbir268/induxia-crud
  2. 发布包配置

    php artisan vendor:publish --provider="Sabbir268\InduxiaCrud\InduxiaCrudServiceProvider"

使用方法

步骤 1:生成初始 YAML 文件

php artisan make:yaml {ResourceName}

# Example
php artisan make:yaml User

### Step 2: Edit the YAML File

Edit the generated YAML file located in the `resources/yaml` directory.


### Step 3: Generate CRUD

```bash
php artisan make:crud {ResourceName} --yaml=resources/yaml/{ResourceName}.yaml


# License
This package is open-sourced software licensed under the [MIT license](LICENSE.md).