grahh / artisanplus
artisan commands
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:laravel
Requires
- laravel/framework: 5.7.* | 5.6.*
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