Download the PHP package silverhand7/laravel-artisan-maker without Composer
On this page you can find all versions of the php package silverhand7/laravel-artisan-maker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silverhand7/laravel-artisan-maker
More information about silverhand7/laravel-artisan-maker
Files in silverhand7/laravel-artisan-maker
Package laravel-artisan-maker
Short Description A simple package that can help you to create a boilerplate of a service or action class.
License MIT
Informations about the package laravel-artisan-maker
Laravel Artisan Maker
A simple package that can help you create a boilerplate of a service, action, interface and facade class with artisan command.
Example usage:
Installation
Usage
Create a service class:
Run the following command:
The service will be created and can be found at app/Services/{YourService}.php \
For example: php artisan make:service UserService
Additionally, you can create a service that implements an interface class
or
Create an action class:
Run the following command:
The action will be created and can be found at app/Actions/{YourAction}.php \
For example: php artisan make:action UserStoreAction
Create an interface class:
Run the following command:
The interface will be created and can be found at app/Contracts/{YourInterface}.php \
For example: php artisan make:interface UserServiceInterface
Create a facade class:
Run the following command:
The facade will be created and can be found at app/Facades/{YourFacade}.php \
For example: php artisan make:facade UserFacade
Custom your namespace and generated file location
You can easily customize where you want to locate your Service, Action, Interface or Facade class. You can do that by publishing the config file using the following command:
You can customize it in config/artisan-maker.php
, for example:
Your next generated service will be in the app/MyOwnServices
folder and your namespace for service will be App\MyOwnServices
.