laracademy / interactive-make

Interactive Make Command for Laravel
MIT License
345 stars 18 forks source link

Making a model with all options does not create migration/resourceful controller. #8

Closed vaughany closed 7 years ago

vaughany commented 7 years ago
$ ./artisan make
 What command are you running?:
 ...
 > model
 Model Name (Example: Posts):
 > Chairs
 Do you want to make a migration for this model? (yes/no) [no]:
 > yes
 Do you want to make a controller for this model? (yes/no) [no]:
 > yes
 Is this controller a resourceful controller? (yes/no) [no]:
 > yes
Model created successfully.

Running git status shows the following:

app/Chairs.php

Running the command manually:

./artisan make:model Chairs --migration --controller --resource
Model created successfully.
Created Migration: 2017_05_04_133413_create_chairs_table
Controller created successfully.

Now, running git status shows the following:

app/Chairs.php
app/Http/Controllers/ChairsController.php
database/migrations/2017_05_04_133413_create_chairs_table.php

I'm running Laravel 5.4.21.

michael-mcmullen commented 7 years ago

Thanks for reporting this @vaughany

It has been fixed in 0.9. You should be able to update from packagist in a few minutes.