Create Model from a Migration

2

I created migrations from the command migrate:generate pendence of the dependency link

Is there any way to generate models from these migrations?

    
asked by anonymous 05.10.2017 / 02:22

1 answer

1

I took a look, and apparently there is no. The name attribute of the command that remains in the MigrateGenerateCommand.php file only displays the migrate:generate value. Normally, if there were any additional options in this generation of migrations, this attribute would establish what it is.

At first I took a look at this other repository that can do the same with Models, and I found this one: link .

It assembles a complete scaffolding from a specific database and / or table. In its settings file (inside the /config folder, right after the installation), you can set whether to generate the Model with timestamps, soft deletes, etc.

    
05.10.2017 / 07:13