A set of tools to make working with service easier in Laravel
- Creates trait by using artisan command
- Creates service by using artisan command
- Creates controller service by using artisan command
- Add common functions that require to create API
You can install this package using Composer.
composer require joy2362/service-generator
Publish lang file:
php artisan vendor:publish --tag="service-generator-stub"
Publish stub file:
php artisan vendor:publish --tag="service-generator-lang"
File location app/trait
php artisan make:trait NotifiableTrait
File location app/service
php artisan make:service CategoryService
File location app/service && app/Http/Controllers
php artisan make:c-s Category
File location app/service && app/Http/Controllers && app/Http/Requests
php artisan make:c-s Category --api
Tip: if the name matches with any model then it will generate crud operation
Please see Releases for more information on what has changed recently.
Pull requests are more than welcome. You must follow the PSR coding standards.
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.