Level 122
php artisan make:model Photo -m -c
Laravel 5.4 provides the useful way to create a model related to controller all together.
php artisan make:controller PhotoController --resource --model=Photo
A very handful way of creating a migration related to a model was to use
php artisan make:model Photo -m
The '-m' parameter enabling to create the related migration file to the model created.
Is there a command to create the controller, model and migration all together?
Bang bang bang : php artisan make:model ModelName -m -cr
creates migration, model and controller and populates the controller with resource methods.
Obama Out!
Please or to participate in this conversation.