Create Model from a Migration

Asked

Viewed 375 times

2

1 answer

1


I looked into it, and apparently you don’t. The attribute name of the command that is in the file MigrateGenerateCommand.php only displays the value migrate:generate. Normally, if there were any additional options in this generation of Migrations, this attribute would establish what is.

At first, I took a look at this other repository that can do the same with Models, and I found this one: https://github.com/reliese/laravel.

He rides a scaffolding complete from a specific database and/or table. In its settings file (within the folder /config, right after installation) you can specify whether to generate the Model with timestamps, soft Deletes, etc.

  • Very good, man... thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.