There is https://github.com/krlove/eloquent-model-generator which I have heard of, I haven't used it myself.
Jan 9, 2017
4
Level 2
Is there a utility to create Model files from an existing database?
New to Laravel but we had something like this for Symfony2.
I tried ignasbernotas/laravel-model-generator but after loading it via composer the "artisan make:models" command came back with:
[Symfony\Component\Console\Exception\CommandNotFoundException] Command "make:models" is not defined. Did you mean one of these? make:model make:auth make:command ...
Basically, I have a complex database designed in an ERD that would be a major PITA to recreated in model files manually.
The database is PostgreSQL 9.6.
Please or to participate in this conversation.