2017 © Pedro Peláez
 

library laravel-schema-extend

support MySQL 'column comment' and 'table comment'.

image

glz/laravel-schema-extend

support MySQL 'column comment' and 'table comment'.

  • Saturday, August 12, 2017
  • by huanggun
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

laravel-schema-extend

  • support MySQL 'column comment' and 'table comment'.
  • 让 laravel 的 Schema 支持 MySQL “列注释”和“表注释”。

不会对官方源码照成任何影响!
同时随官方源码的更新,自动保持最新。
也就是说,官方后期若更新了新的功能,您都还可以正常使用!, (*1)

使用前的准备

在 composer.json 文件中申明依赖:, (*2)

"wind/laravel-schema-extend": "dev-master"

/app/config/app.php 中替换“别名”, (*3)

'aliases' => array(
    ...
    // 'Schema' => 'Illuminate\Support\Facades\Schema',
    'Schema'    => 'wind\LaravelSchemaExtend\Facade',
),

使用方法

Schema::create('tests', function ($table) {
    $table->increments('id')->comment('列注释');
    $table->comment = '表注释';
});

The Versions

12/08 2017

dev-master

9999999-dev

support MySQL 'column comment' and 'table comment'.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by renlu

laravel schema mysql comment

12/08 2017

1.0.0

1.0.0.0

support MySQL 'column comment' and 'table comment'.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by renlu

laravel schema mysql comment