How do I create a Model after migration?

Asked 2 years ago, Updated 2 years ago, 404 views

I ran DB definition on Ravel with the following command:

$phpartisan migrate

Is there a way to automatically create Model files/classes after this?

I've seen how to make migration at the same time as making a model, but
I was wondering if there is a way to make a model after migrating.

Ravel uses 6.x series.

laravel

2022-09-30 22:01

1 Answers

You can create a migration file and a model class file at the same time with the following command:

$phpartisan make:modelFlight--migration

Or

$phpartisan make:model Flight-m

https://readouble.com/laravel/6.x/ja/eloquent.html


2022-09-30 22:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.