定制 devinci-it/laravel-utils 二次开发

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

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

devinci-it/laravel-utils

最新稳定版本:v1.0.0

Composer 安装命令:

composer require devinci-it/laravel-utils

包简介

README 文档

README

The laravel_crud_generator library is a Laravel package that provides a convenient way to generate custom Laravel class repositories. With this library, users can easily create repositories containing basic CRUD (Create, Read, Update, Delete) operations.

Installation

To use this library, follow these steps:

  1. Clone the repository from GitHub:

    git clone https://github.com/your-username/laravel_crud_generator.git
  2. Note the path into the cloned directory:

    pwd laravel_crud_generator
  3. In your Laravel project's composer.json file, add the following to the repositories array:

    "repositories": [
        {
            "type": "path",
            "url": "/path/to/laravel_crud_generator"
        }
    ]

    Replace /path/to/laravel_crud_generator with the actual path to the cloned library on your local system.

  4. Require the package in your Laravel project:

    composer require devinci/laravel-utils="dev/main"

    This will ensure that the library is installed and available for use within your Laravel project.

Usage

Once the library is properly installed and configured, you can use the following command to generate a repository:

php artisan make:repository {model} {name?}

Replace {model} with the name of your model and {name} (optional) with the desired name for the repository class. This command will create a repository class containing basic CRUD operations for the specified model.

Note

Please note that this library is currently only available on GitHub. You need to clone the repository and follow the installation steps mentioned above to use it in your Laravel project. Make sure you have a Laravel project set up before installing the library.

For more information or to report any issues, please visit the laravel_crud_generator GitHub repository.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-23