承接 aleksandro_del_piero/repository 相关项目开发

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

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

aleksandro_del_piero/repository

最新稳定版本:1.0.0

Composer 安装命令:

composer require aleksandro_del_piero/repository

包简介

Package for creating repository files for Laravel

README 文档

README

This is a simple package for generating repository files in Laravel

Installation

You can install the package via composer:

composer require aleksandro_del_piero/repository

Publish configuration file (required)*!. If you do not publish the configuration file, the files will be created in the directory App/.

php artisan vendor:publish --provider=AleksandroDelPiero\Repository\RepositoryServiceProvider

Documentation

// Create new repository for model User
php artisan make:repository UserRepository --model=User

// Or create new repository for model User
php artisan make:repository UserRepository

After this you will need to specify the model name:
Specify the name of the model:
 > User

By default, all files will be created along the path App/Repositories. But this can be changed in the configuration file config/repositories.php.

return [
    'namespace' => '\\Repositories'
];

As an example, you can change the directory to Libs/Repsitories

return [
    'namespace' => '\\Libs\\Repositories'
];

After changing the configuration file, it is advisable to run the command to clear the cache:

php artisan optimize:clear

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-09