Download the PHP package vitalibr/laravel5-exporter without Composer
On this page you can find all versions of the php package vitalibr/laravel5-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vitalibr/laravel5-exporter
More information about vitalibr/laravel5-exporter
Files in vitalibr/laravel5-exporter
Package laravel5-exporter
Short Description MySQL Workbench Schema Exporter for Laravel 5.0
License MIT
Homepage https://github.com/vitalibr/laravel5-exporter
Informations about the package laravel5-exporter
Laravel 5.0 Exporter
This is an exporter to convert MySQL Workbench Models (*.mwb) to Laravel Framework 5 Model and Migration Schema.
Prerequisites
- PHP 5.4+
- Composer to install the dependencies
Installation
This will install the exporter and also require mysql-workbench-schema-exporter.
You then can invoke the CLI script using vendor/bin/mysql-workbench-schema-export.
Formatter Setup Options
Additionally to the common options of mysql-workbench-schema-exporter these options are supported:
Laravel Model
Setup Options
-
namespaceNamespace for generated class.
Default is
App\Models. -
parentTableAncestor class, the class to extend for generated class.
Default is
Model. -
generateFillableGenerate variable fillable with all columns.
Default is
false.
Laravel Migration
Setup Options
-
tablePrefixTable prefix for generated class.
Default is
Create. -
tableSuffixTable suffix for generated class.
Default is
Table. -
parentTableSee above.
Default is
Migration. -
generateTimestampsGenerate
created_atandupdated_atcolumns to all Tables.Default is
false.
Command Line Interface (CLI)
See documentation for mysql-workbench-schema-exporter
Examples (v3.0.3)
Workbench Schema

Model

Migration

Links
All versions of laravel5-exporter with dependencies
mysql-workbench-schema-exporter/mysql-workbench-schema-exporter Version ^3.0.0