承接 b3nl/laravel-mwb-model 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

b3nl/laravel-mwb-model

最新稳定版本:0.10.0

Composer 安装命令:

composer require b3nl/laravel-mwb-model

包简介

Converts an MySQL Workbench model to laravel counterparts.

README 文档

README

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.

  • 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:

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:

; 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

统计信息

  • 总下载量: 147
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-21