grahh/artisanplus

artisan commands

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:laravel

v0.1.8 2018-09-26 13:57 UTC

This package is auto-updated.

Last update: 2025-06-27 05:33:14 UTC


README

artisan commands package.

#Installation

  • composer require grahh/artisanplus
  • php artisan vendor:publish --provider="Grahh\Artisanplus\ArtisanplusProvider"
  • php artisan config:cache

Commands list:

php artisan make:repository {Model}
// required argument Model
php artisan make:service {Name} {?--folder=}
// required argument Name
// optional parameter folder which will create additional namespace postfix after default config postfix and move file there
php artisan make:vo {Name}
//creates Value Object

Configs

  • commands - list of commands mentioned by listing of class names
  • namespaces - list of default namespaces

Example of usage

make:repository

php artisan make:repository User --folder=One/Two
//will create UserRepository.php in app_path(your/config/path/One/Two)

make:service

php artisan make:service Service
//will create ServiceRepository.php in app_path(your/config/path/)

and

php artisan make:service One/Two/Service
//will create ServiceRepository.php in app_path(your/config/path/One/Two/)

make:vo

php artisan:make Some
//creates immutable Value Object Some.php