Skip to content
user11001/Eloquent-Model-Generator refactored
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Eloquent-Model-Generator for Laravel 5

Auto-generates all Eloquent models from the database in a Laravel 5 project. This will also add all relation functions to your generated models (belongsTo, belongsToMany, hasMany, hasOne).

I'm also creating a ServiceProvider that will auto-generate basic CRUD functionality for these models. For now, you can use Laravel Administrator for this task.


Add the following packages to your composer.json

"require-dev": {
    "xethron/migrations-generator": "dev-l5",
    "way/generators": "dev-feature/laravel-five-stable",
    "user11001/eloquent-model-generator": "dev-master"

You also need to point to the fork of the way/generators repo. See Xethron/migrations-generator for more info about this.

"repositories": [
        "type": "git",
        "url": ""

Next, run composer update

Next, add the following service providers to your config/app.php


Lastly, make sure your .env file has correct database information


php artisan models:generate

You can’t perform that action at this time.