scuti/service-generator

Package allow us to create Service layer

1.1 2020-10-28 11:34 UTC

This package is auto-updated.

Last update: 2024-09-28 20:30:35 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