0
votes

Is there a way to make Model, Migration and Controller with one Artisan command. But the controller I would like to be in placed in different sub-directory, not in Artisan's default directory. Thank you for help/suggestions.

1
What is the purpose for doing this all at once? As far as I can tell this would only require two to begin with... - Luke

1 Answers

1
votes

In two lines you could do:

//create model and migration
php artisan make:model ModelName -m

//create controller in subfolder
php artisan make:controller  subfolder/Controller