chuoke/laravel-table-comment
Composer 安装命令:
composer require chuoke/laravel-table-comment
包简介
Laravel table comment for migration
README 文档
README
Just a simple extension for commenting table in laravel migration.
Installation
You can install the package via composer:
composer require chuoke/laravel-table-comment
Usage
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; // use Illuminate\Database\Migrations\Migration; use Chuoke\LaravelTableComment\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function (Blueprint $table) { $table->id(); $table->string('name', 30)->comment('Name'); $table->comment('User info table'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 526
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-13