scuti / service-generator
Package allow us to create Service layer
Installs: 2 349
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
This package is auto-updated.
Last update: 2024-10-28 20:39:54 UTC
README
A package to generator service layer.
How to install
Step 1: Install via composer
composer require scuti/service-generator
Step 2: Publish service-generator (optional if you want to custom config)
php artisan vendor:publish --provider="Scuti\Admin\ServiceGenerator\ServiceGeneratorProvider"
// Config file
// service_layer.php
return [
'service_path' => 'Services', // The path of Service folder
'allow_implement_interface' => false, // User the interface or not
];
Step 3: Use command to generate service
php artisan make:service NameOfService