Is there anyway to convert an existent Mysql DB to the Eloquent ORM automatically? I'm creating a Laravel application, but I already have the DB, so I need to map all the DB to the Eloquent ORM.
Eloquent doesn't need any configuration, it already works with any DB you already have. You just need to setup your relations and it's good.
If you are asking about automatically creating model files and relations, no I don't believe there is. And it would be tricky to do without foreign keys and even then still quiet tricky to do automatically.
Long shot but re-do your entity diagram in here http://www.laravelsd.com/ and you can download it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community