dev-master
9999999-devPHP Laravel - Pattern Generator
MIT
The Requires
- php >=5.5.12
- nuworks/laravel-pattern-generator dev-master
laravel php pattern generator
PHP Laravel - Pattern Generator
PATTERN GENERATOR (LARAVEL), (*1)
This package provides a variety of generator commands to speed up your development process. These includes:, (*2)
make:pg-trait
make:pg-model
make:pg-service
make:pg-repository-interface
make:pg-bindings-service-provider
REQUIREMENTS - Laravel 5.2 and below, (*3)
INSTALLATION
Edit your project's composer.json
file to require nuworks/laravel-pattern-generator
., (*4)
"require-dev": { "nuworks/laravel-pattern-generator": "dev-master" }
Next, update Composer from the Terminal:, (*5)
composer update --dev
Once this operation completes, open config/app.php
and add a new item to the providers array., (*6)
NuWorks\PatternGenerator\Core\PatternGeneratorServiceProvider::class
Do a Composer dump to refresh your autoload files., (*7)
composer dump-autoload -o
You're all set to go! Run the artisan
command from the Terminal to see the new make
commands., (*8)
php artisan
USAGE, (*9)
Create a new trait by using make:pg-trait
., (*10)
php artisan make:pg-trait {trait} --folder={directory}
Create a new model by using make:pg-model
., (*11)
php artisan make:pg-model {model} --folder={directory}
Create a new service altogether with model., (*12)
php artisan make:pg-service {model} --model --folder={directory}
Create a repository interface., (*13)
php artisan make:pg-repository-interface {interface} --folder={directory}
Create a bindings service provider., (*14)
php artisan make:pg-bindings-service-provider {service-provider} --folder={directory}
PHP Laravel - Pattern Generator
MIT
laravel php pattern generator