flipboxstudio / lumen-generator

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

Fix Make Controller Command #73

Closed jorgemudry closed 4 years ago

jorgemudry commented 4 years ago

Creating API controllers with models binding is not working.

Expected Behavior

When you try to create a new API controller using the make:controller --api -m User command a File does not exists error is shown:

File does not exist at path vendor/flipbox/lumen-generator/src/LumenGenerator/Console/stubs/controller.model.api.stub.

Possible Solution

Add the missing stub.

Steps to Reproduce

  1. Execute the command to make a new controller using the --api and -m Model options:
php artisan make:controller --api -m User