sonmez/laravel-rsc

package that contains a command to generate base repositories and services for model

v1.1.1 2023-02-24 15:30 UTC

This package is not auto-updated.

Last update: 2024-12-14 00:31:13 UTC


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.