Generate a model and a migration, factory, seeder, and controller CODE
You may generate various other types of classes when generating a model, such as factories, seeders, and controllers. In addition, these options may be combined to create multiple classes at once:
# Generate a model and a FlightFactory class...
php artisan make:model Flight --factory
php artisan make:model Flight -f

# Generate a model and a FlightSeeder class...
php artisan make:model Flight --seed
php artisan make:model Flight -s

# Generate a model and a FlightController class...
php artisan make:model Flight --controller
php artisan make:model Flight -c

# Generate a model and a migration, factory, seeder, and controller...
php artisan make:model Flight -mfsc
by გიორგი ბაკაშვილი
4 years ago
Laravel
php artisan make
laravel official doc
3
Pro tip: use ```triple backticks around text``` to write in code fences
0
გიორგი უზნაძე 4 years ago
php artisan make:model Flight -a
-ic shesadzlebelia
REPLY