laravel urobiť model s migráciou a regulátorom
php artisan make:model Todo -mcr
laravel vytvoriť modelový radič a migráciu na linke
php artisan make:model Todo -a
vytvoriť model s radičom laravel
php artisan make:model Customer
php artisan make:controller CustomersController --resource
vytvoriť migráciu, regulátor, model a sejacie laravel
php artisan make:model MODEL_PATH\MODEL_NAME -mcrs
or
php artisan make:model MODEL_PATH\MODEL_NAME -a
-a, --all Generate a migration, factory, and resource controller for the model
-m, --migration Create a new migration file for the model.
-c, --controller Create a new controller for the model.
-r, --resource Indicates if the generated controller should be a resource controller
-s, --seeder Create a new seeder file for the model.
vytvorenie modelu, kontroléra a migrácie v jedinom príkaze laravel
php artisan make:model Products -mcr
-m, --migration Create a new migration file for the model.
-c, --controller Create a new controller for the model.
-r, --resource Indicates if the generated controller should be a resource controller
newer versions of laravel > 5.6
php artisan make:model Products -a
-a, --all Generate a migration, factory, and resource controller for the model