/laravel-s-r-c

A simple package that creates CRUD service-repository pattern

Primary LanguagePHP

Buy Me A Coffee

Composer package that creates CRUD service-repository-controller format. https://packagist.org/packages/safventure/laravel-s-r-c

As of this writing, this only supports up to laravel 6. Still in progresss to work this on laravel later version.

Installation
composer require safventure/laravel-s-r-c

Usage
Make CRUD service-repository-controller
php artisan make:src {Name}
ex. php artisan make:src Post

Make CRUD service
php artisan make:service {Name}
ex. php artisan make:service Post

Make CRUD repository
php artisan make:repository {Name}
ex. php artisan make:repository Post

Make CRUD controller
php artisan make:rscontroller {Name}
ex. php artisan make:rscontroller Post