2017 © Pedro Peláez
 

library eloquent-model-generator

Auto-generates all Eloquent models from the database in a Laravel 5 project.

image

user11001/eloquent-model-generator

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  • Friday, October 21, 2016
  • by pepijnolivier
  • Repository
  • 8 Watchers
  • 92 Stars
  • 34,389 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 25 Forks
  • 7 Open issues
  • 6 Versions
  • 7 % Grown

The README.md

Eloquent Model Generator

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads, (*1)

This Laravel package will generate models with their appropriate Eloquent relations based on an existing database schema., (*2)

For automatically generating database migrations for your schema, see kitloong/laravel-migrations-generator, (*3)

Requirements

  • PHP 8.1+
  • Laravel 8+

Installation

You can install the package via composer:, (*4)

composer require --dev pepijnolivier/eloquent-model-generator

You can publish the config file with:, (*5)

php artisan vendor:publish --tag="eloquent-model-generator-config"

This is the contents of the published config file:, (*6)

<?php

use Illuminate\Database\Eloquent\Model;

return [
    /*
    |--------------------------------------------------------------------------
    | Namespace
    |--------------------------------------------------------------------------
    |
    | The default namespace for generated models.
    |
    */
    'model_namespace' => 'App\Models\Generated',
    'trait_namespace' => 'App\Models\Generated\Relations',

    /*
    |--------------------------------------------------------------------------
    | Output Path
    |--------------------------------------------------------------------------
    |
    | Path where the models will be created.
    |
    */
    'model_path' => 'app/Models/Generated',
    'trait_path' => 'app/Models/Generated/Relations',

    /*
    |--------------------------------------------------------------------------
    | Extend Model
    |--------------------------------------------------------------------------
    |
    | Extend the base model.
    |
    */
    'extend' => Model::class,
];

Usage

php artisan generate:models

Testing

composer test

Please see CONTRIBUTING for details., (*7)

Security Vulnerabilities

Please see SECURITY for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

21/10 2016

dev-master

9999999-dev

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan

05/02 2016

dev-development

dev-development

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan

08/12 2015

v2.0.0

2.0.0.0

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan

08/12 2015

v1.0.2

1.0.2.0

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan

08/12 2015

v1.0.1

1.0.1.0

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan

08/12 2015

v1.0.0

1.0.0.0

Auto-generates all Eloquent models from the database in a Laravel 5 project.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel eloquent model artisan