/service-repository-maker

Laravel service and repository maker

Primary LanguagePHP

laravel-service-repository-maker

Generator service and repository pattern for Laravel

Quick Start

Step 1: Install the package

$ composer require aksara/service-repository-maker

Step 2: Publish the "stubs" - service and repository templates.

$ php artisan vendor:publish --tag='aksara-service-repository-stubs'

Make Service and Repository

Make Service: this will directly create a Service file in app/Services folder

$ php artisan make:service {service name}

Make Repository: this will directly create a Service file in app/Repositories folder

$ php artisan make:repository {repository name}

Sample CRUD with Service and Repository Pattern

https://github.com/putuedipuspayasa/laravel-crud-with-service-and-repository-pattern