alejojperez/laravel-skeleton-generator

A package containing a set of commands to generate any kind of component
22 1
Install
composer require alejojperez/laravel-skeleton-generator
Latest Version:1.0.0
License:APACHE LICENSE - VERSION 2.0
Last Updated:Apr 23, 2018
Links: GitHub  ·  Packagist
Maintainer: alejojperez

laravel-skeleton-generator

A package containing a set of commands to generate any kind of component

Include the service provider

// config/app.php

return [

    "providers" => [
        ...
        AlejoJPerez\LaravelSkeletonGenerator\LaravelSkeletonGeneratorServiceProvider::class,
        ...
    ]

];

Publish the package configuration (optional)

php artisan vendor:publish --provider="AlejoJPerez\LaravelSkeletonGenerator\LaravelSkeletonGeneratorServiceProvider" --tag="config"

Include all the commands to the console

// app/Console/Kernel.php

...
protected $commands = [
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateSkeletonCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateEntityCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateJobCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateJobValidatorCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateRepositoryCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateRepositoryContractCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateRepositoryServiceProviderCommand::class,
    \AlejoJPerez\LaravelSkeletonGenerator\Commands\Generate\GenerateTransformerCommand::class,
];
...