sonmez/laravel-rsc
Composer 安装命令:
composer require sonmez/laravel-rsc
包简介
package that contains a command to generate base repositories and services for model
README 文档
README
You can use this package create your repositories and services easily and you can customize them .
Installation
1- You can install the package via composer:
composer require sonmez/laravel-rsc
2- After Successfull installation please run the following command :
php artisan laravel-rsc:publish
You will notice that there are two folder are created inside your app folder "Repositories" and "Services" along with two services providers to solve depenedency injection inside Providers Folder
3- Register ServiceLayerServiceProvider in providers section your config/app.php
App\Providers\ServiceLayerServiceProvider::class,
Usage
You can create a repository and service for your model by typing the following command: for example let us suppose that we want to do that for Admin Model that exists inside App\Models
php artisan create:repo Admin
Support
if you have any issue please post it in issuess section in this repo
Security
If you discover any security related issues, please email lamasonmez@gmail instead of using the issue tracker.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-29