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
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-09