定制 zedisdog/laravel-schema-extend 二次开发

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

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

zedisdog/laravel-schema-extend

最新稳定版本:1.4.1

Composer 安装命令:

composer require zedisdog/laravel-schema-extend

包简介

supplement for eloquent migration

README 文档

README

License

  • support MySQL 'table comment'.
  • 'column comment' is built-in in greater than 5.1 version.
  • support variable length for integer/tinyint/mediumint/smallint/bigint

just extend the original class

Install

Require this package with composer using the following command:

composer require zedisdog/laravel-schema-extend

less than 5.5

modify the alias Schema in config/app.php:

'aliases' => [ ... // 'Schema' => Illuminate\Support\Facades\Schema::class, 'Schema' => Jialeo\LaravelSchemaExtend\Schema::class, ],

great than 5.5

just modify use statement from

use Illuminate\Support\Facades\Schema;

to

use Jialeo\LaravelSchemaExtend\Schema;

in migrate files.

Usage

Schema::create('tests', function ($table) { //this is alredy built-in. $table->increments('id')->comment('column comment'); $table->integer('int')->default(1)->length(1); $table->bigInteger('big')->default(1)->length(1); $table->smallInteger('small')->default(1)->length(1); $table->tinyInteger('tiny')->default(1)->length(1); $table->mediumInteger('medium')->default(1)->length(1); $table->comment = 'table comment'; $table->autoIncrement = 100; });

Thanks

PS.

sorry for my bad english

统计信息

  • 总下载量: 69.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 63
  • 点击次数: 3
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 61
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固