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-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