1

I am working on a php laravel webapp.

I am creating models for my database.

I have to write models class and migrations too.

Is there a way to only write model class and generate migration class automatically ?

Artisan is not able to detect changes in Model class ?

Thanks

Bob5421
  • 7,757
  • 14
  • 81
  • 175

1 Answers1

0

You can simply generate Model with using

php artisan make:model model-name -m

parameter -m stands for auto create migration while you are creating model.

Haris
  • 111
  • 6