PHP code example of alejojperez / laravel-skeleton-generator

1. Go to this page and download the library: Download alejojperez/laravel-skeleton-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alejojperez / laravel-skeleton-generator example snippets


// config/app.php

return [

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

];

// 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,
];
...
bash
php artisan vendor:publish --provider="AlejoJPerez\LaravelSkeletonGenerator\LaravelSkeletonGeneratorServiceProvider" --tag="config"