定制 vitalibr/laravel5-exporter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vitalibr/laravel5-exporter

Composer 安装命令:

composer require vitalibr/laravel5-exporter

包简介

MySQL Workbench Schema Exporter for Laravel 5.0

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

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

php composer.phar require --dev vitalibr/laravel5-exporter

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

  • namespace

    Namespace for generated class.

    Default is App\Models.

  • parentTable

    Ancestor class, the class to extend for generated class.

    Default is Model.

  • generateFillable

    Generate variable fillable with all columns.

    Default is false.

Laravel Migration

Setup Options

  • tablePrefix

    Table prefix for generated class.

    Default is Create.

  • tableSuffix

    Table suffix for generated class.

    Default is Table.

  • parentTable

    See above.

    Default is Migration.

  • generateTimestamps

    Generate created_at and updated_at columns to all Tables.

    Default is false.

Command Line Interface (CLI)

See documentation for mysql-workbench-schema-exporter

Examples (v3.0.3)

Workbench Schema

alt tag

Model

alt tag

Migration

alt tag

Links

统计信息

  • 总下载量: 1.05k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固