更新时间:2023-12-01 09:13:40
您可以使用Jeffrey Way的Laravel 4生成器工具,并手工完成.这是一个非常有用的工具. https://github.com/JeffreyWay/Laravel-4-Generators (如果您正在使用Laravel 5,请改用此软件包: https://github.com/laracasts/Laravel-5-Generators-Extended )
You could use Jeffrey Way's generator tool for Laravel 4, and do them by hand. It is a very useful tool. https://github.com/JeffreyWay/Laravel-4-Generators (if you are using Laravel 5, use this package instead: https://github.com/laracasts/Laravel-5-Generators-Extended)
或者您可以尝试使用以下软件包之一,它们应该将您现有的架构转换为Laravel迁移.我没有尝试过,但是看看:
Or you could try out one of the following packages, they should convert your existing schema to Laravel migrations. I have not tried them, but have a look:
https://github.com/barryvdh/laravel-migration-generator
Also, read the following answer in another question, might be useful to you or others: Reverse engineering or Auto-Generations of Entities in Laravel?