builds eloquent models based on the tables and relations found in your mysql database
jimbolino/laravel-model-builder is a Laravel package for builds eloquent models based on the tables and relations found in your mysql database.
It currently has 30 GitHub stars and 11.630 downloads on Packagist.
Install it with composer require jimbolino/laravel-model-builder.
Discover more Laravel packages by jimbolino
or browse all Laravel packages to compare alternatives.
Last updated
Laravel Model Builder, a poor attempt to reverse engineer a MySQL database to Laravel models.
Add the following to your composer.json:
"require": {
"jimbolino/laravel-model-builder" : "dev-master"
},
Add to your routes.php:
Route::get('/generate/models', '\\Jimbolino\\Laravel\\ModelBuilder\\ModelGenerator5@start');
Run the url, and your models will be created in the storage\models folder so you have to manually copy them to your real models folder. Or better, use a tool like beyond compare to update your current models.