dainaka/make-service-cmd

A Composer library that enables the use of the php artisan make:service command in Laravel projects, simplifying the creation of service classes.

v1.0.0 2025-04-30 01:24 UTC

This package is auto-updated.

Last update: 2025-04-30 01:25:34 UTC


README

Create a new service class and service interface

Install

composer require dainaka/make-service-cmd

Suggest

@wxfpk432

Usage

$ php artisan make:service {name : Create a service class}

Example

Create a service class

$ php artisan make:service ExampleService
<?php
// app/Http/Services/ExampleService.php

namespace App\Services;

class ExampleService
{
    public function __construct()
    {
        //
    }

    public function exampleMethod() : void
    {
        //
    }
}