I just got in touch with Laravel and want to try to use Laravel to reconstruct an old project. Now I have a problem. If I want to develop a team in the future, therefore, it is very convenient to use migrate in the database, but because it is an old project, there are already a large number of data tables. If you manually write migrate... I just got in touch with Laravel and want to try to use Laravel to reconstruct an old project. Now I have a problem. If I want to develop a team in the future, therefore, it is very convenient to use migrate in the database, but because it is an old project, there are already a large number of data tables. It is very difficult to manually write migrate. I don't know if I can automatically generate a migrate file for an existing data table.
In addition, the model file does not know whether it can automatically generate the basic files required by Eloquent ORM in batches based on the database. I just need to modify the files.
Reply content:
I just got in touch with Laravel and want to try to use Laravel to reconstruct an old project. Now I have a problem. If I want to develop a team in the future, therefore, it is very convenient to use migrate in the database, but because it is an old project, there are already a large number of data tables. It is very difficult to manually write migrate. I don't know if I can automatically generate a migrate file for an existing data table.
In addition, the model file does not know whether it can automatically generate the basic files required by Eloquent ORM in batches based on the database. I just need to modify the files.
Google search does not have: Laravel extension recommendation: DbExporter reverse Migration and db: seed
Similar extension packages include:
Https://github.com/Xethron/migrations-generator
Https://github.com/orangehill/iseed
Migrations Generator
Generate Laravel Migrations from an existing database, including
Indexes and foreign keys!
I guess that's what you need, right?