masterskill/service-package

This is a package that allows you to automatically create services in Laravel.

3.0.0 2024-10-20 05:45 UTC

This package is auto-updated.

Last update: 2024-10-21 15:42:13 UTC


README

This is a project that creates a Laravel package for automatically generating a Service file in app\Services with the default namespace App\Services.

Prerequisites

  • Laravel framework: ">=9.0"
  • PHP: ">=8.0"

Installation

To install the package, run the following command:

composer require masterskill/service-package

Publish the config file

To publish the config file, run the command:

php artisan vendor:publish --tag=config

The config file will be registered as 'service-package.php' under config folder.

Creating a Service

To create a new service, use the following Artisan command:

php artisan make:service MyService

Author

Note

  • Namespace is based on App\

Enjoy it :)