Generator service and repository pattern for Laravel
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: 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}
https://github.com/putuedipuspayasa/laravel-crud-with-service-and-repository-pattern