flipboxstudio / lumen-generator

A Lumen Generator You Are Missing
https://packagist.org/packages/flipbox/lumen-generator
MIT License
823 stars 126 forks source link

Upgrade the make:model command #76

Closed jorgemudry closed 4 years ago

jorgemudry commented 4 years ago

What does this Pull Request Do?

It fixes the issue #75

How should this be manually tested?

  1. Clone the repo from my fork:
git clone https://github.com/jorgemudry/lumen-generator.git;
git checkout upgrade_make_model_command;
  1. Change the name property in the composer.json file:
"name": "jorgemudry/lumen-generator",
  1. In a new lumen project, add set up the local repository to the package in your composer.json:
    "repositories": {
        "dev-package": {
            "type": "path",
            "url": "../lumen-generator",
            "options": {
                "symlink": true
            }
        }
    }
  1. Add the package to your project:
composer require jorgemudry/lumen-generator
  1. Inside of your bootstrap/app.php add this:
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
  1. Execute the command to create a new model and try the new options:
php artisan make:model MyNewModel --all
  1. Check that all resources chosen by options were created.

Any extra info?

peter