Package Data | |
---|---|
Maintainer Username: | liang |
Maintainer Contact: | chenjialiang@han-zi.cn (chenjialiang) |
Package Create Date: | 2017-05-07 |
Package Last Update: | 2020-02-10 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-23 03:23:02 |
Package Statistics | |
---|---|
Total Downloads: | 15,132 |
Monthly Downloads: | 226 |
Daily Downloads: | 9 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
forked from zedisdog/laravel-schema-extend
在 composer.json 文件中申明依赖:
"Jialeo/laravel-schema-extend": "~0.5"
在配置文件 config/app.php
中替换“别名”
'aliases' => array(
...
// 'Schema' => Illuminate\Support\Facades\Schema::class,
'Schema' => Jialeo\LaravelSchemaExtend\Schema::class,
),
Schema::create('tests', function ($table) {
$table->increments('id')->comment('列注释');
$table->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);
});