2017 © Pedro Peláez
 

library laravel-mwb-model

Converts an MySQL Workbench model to laravel counterparts.

image

b3nl/laravel-mwb-model

Converts an MySQL Workbench model to laravel counterparts.

  • Saturday, June 18, 2016
  • by WBLKonzept
  • Repository
  • 3 Watchers
  • 13 Stars
  • 134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel MySQL-Workbench Model

With this project you can kickstart your models and database migrations for your Laravel 5 Project. Updates are not possible with it yet, just the start., (*1)

  • Just add this project to your composer setup: "b3nl/laravel-mwb-model": "dev-master"
  • Add our service provider to the list of your service providers in config/app.php: b3nl\MWBModel\ServiceProvider::class

Now you have access to an artisan command for parsing your MySQL-Workbench-File:, (*2)

php artisan make:mwb-model $FILE_TO_SAVED_MODEL --pivots=$COMMA_SEPARATED_LIST_OF_YOUR_PIVOT_TABLE_NAMES

Special Table Comments

You can comment your tables in the MySQL-Workbrench with an ini-String with the following options:, (*3)

; With this comment, this table is ignored for parsing. Leave it out, if you do not want it ignored.
ignore=true
; Name of the Laravel model 
model=Name
; Is this a pivot table? Leave it out if not.
isPivot=true
; withoutTimestamps removes the default timestamps() call for the database migrations
withoutTimestamps=true
; Ini-Array for the laravel model castings: http://laravel.com/docs/5.1/eloquent-mutators#attribute-casting
[casting]
values=array

The Versions

18/06 2016

dev-master

9999999-dev

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2016

0.10.0

0.10.0.0

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/02 2016

0.9.4

0.9.4.0

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/07 2015

0.9.3

0.9.3.0

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/03 2015

0.9.2

0.9.2.0

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires

29/03 2015

0.9.1

0.9.1.0

Converts an MySQL Workbench model to laravel counterparts.

  Sources   Download

MIT

The Requires

  • php >= 5.4.0

 

The Development Requires