php artisan make:model Todo -mcrf
- -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
- -f, --factory Create a new Factory file for this model.
Model created successfully.
Factory created successfully.
Created Migration: 2022_04_06_040656_create_todos_table
Controller created successfully.
php artisan make:model Todo -a
- -a, --all Generate a migration, factory, and resource controller for the model
Model Model created successfully.
Factory created successfully.
Created Migration: 2022_04_06_040920_create_todos_table
Seeder created successfully.
Request created successfully.
Request created successfully.
Controller created successfully.
Policy created successfully.