| Package Data | |
|---|---|
| Maintainer Username: | WBLKonzept |
| Maintainer Contact: | code@b3nl.de (Bjoern Lange) |
| Package Create Date: | 2015-02-21 |
| Package Last Update: | 2016-06-18 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-07 03:03:56 |
| Package Statistics | |
|---|---|
| Total Downloads: | 147 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 14 |
| Total Watchers: | 2 |
| Total Forks: | 2 |
| Total Open Issues: | 3 |
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.
Now you have access to an artisan command for parsing your MySQL-Workbench-File:
php artisan make:mwb-model $FILE_TO_SAVED_MODEL --pivots=$COMMA_SEPARATED_LIST_OF_YOUR_PIVOT_TABLE_NAMES
You can comment your tables in the MySQL-Workbrench with an ini-String with the following options:
; 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