aksara / service-repository-maker
Laravel service and repository generator
Installs: 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/aksara/service-repository-maker
Requires
- php: ^7.3|^8.0
README
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