pkeidel/dbtolaravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pkeidel/dbtolaravel

Composer 安装命令:

composer require pkeidel/dbtolaravel

包简介

Reads a database and creates the migrations, models, controllers and blades for the tables

README 文档

README

Build Status

With this package it is possible to auto-generate a lot of needed files if you already have an existing database schema. Files that can be generated:

  • migration
  • model
  • views to view a single model, edit a single model and list all models
  • controller
  • route
  • seeder with existing data

Install

composer require pkeidel/dbtolaravel

DB2Laravel is only active if APP_DEBUG=true or DBTOLARAVEL_ENABLED=true

usage

  • visit yoururl/dbtolaravel, for example http://127.0.0.1/dbtolaravel
  • you can select a configured database connection
  • in the table you can create all files of view a diff to compare the file to an existing one

Filter Tables

Register a filter in your AppServiceProvider.php:

DBtoLaravelHelper::$FILTER = function($table) {
    return strpos($table, 'eyewitness_io_') !== 0 && strpos($table, 'oauth_') !== 0;
};

Override type mapping

DBtoLaravelHelper::$MAPPINGS = ['enum' => 'string', 'bytea' => 'binary', 'macaddr' => 'string'];

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固