2017 © Pedro Peláez
 

library laranerators

Laravel 5 generators from existing schema

image

ernestovargas/laranerators

Laravel 5 generators from existing schema

  • Wednesday, November 25, 2015
  • by ernestova
  • Repository
  • 1 Watchers
  • 4 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

[Build Status] (https://travis-ci.org/ernestova/laranerators.svg) SensioLabsInsight, (*1)

Model generator

Laravel 5 model generator for an existing MySql schema., (*2)

It reads your existing database schema and generates model class files based on the existing tables., (*3)

Installation

Add "ernestovargas/laranerators": "dev-master" to your require-dev section on your composer.json file., (*4)

Because the generators are only useful for development, add the provider in app/Providers/AppServiceProvider.php, like:, (*5)

public function register()
{
    if ($this->app->environment() == 'local') {
        $this->app->register('ErnestoVargas\Generators\GeneratorsProvider');
    }
}

Help & Options

php artisan help make:models, (*6)

Options: - --dir="" Model directory (default: "Models/") - --extends="" Parent class (default: "Model") - --fillable="" Rules for $fillable array columns (default: "") - --guarded="" Rules for $guarded array columns (default: "ends:_id|ids,equals:id") - --timestamps="" Rules for $timestamps columns (default: "ends:_at") - --ignore=""|-i="" A table names to ignore - --ignoresystem|-s List of system tables (auth, migrations, entrust package), (*7)

The Versions

25/11 2015

dev-master

9999999-dev

Laravel 5 generators from existing schema

  Sources   Download

MIT

The Requires

 

by Ernesto Vargas

laravel schema generator model sleeping-owl dingoapi