Closed jorgemudry closed 4 years ago
Creating API controllers with models binding is not working.
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:
make:controller --api -m User
File does not exists
File does not exist at path vendor/flipbox/lumen-generator/src/LumenGenerator/Console/stubs/controller.model.api.stub.
Add the missing stub.
--api
-m Model
php artisan make:controller --api -m User
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 aFile 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
--api
and-m Model
options: