**默认laravel是没有带添加表注释组件的,这里需要安装“/zedisdog/laravel-schema-extend”包.
该组件包要求使用大于等于5.0版本的laravel**
1.拉取组件
```
composer require zedisdog/laravel-schema-extend
```
2.申明依赖 (修改config->app.php->aliases)
```
'aliases' => [
...
// 'Schema' => Illuminate\Support\Facades\Schema::class,
'Schema' => Jialeo\LaravelSchemaExtend\Schema::class,
],
```
3.使用(默认创建的migration文件对应的“Schema”还是引用的laravel自带的,需要修改为该组件包的引用)
```
//use Illuminate\\Support\\Facades\\Schema;
use Jialeo\\LaravelSchemaExtend\\Schema;
Schema::create('users', function (Blueprint $table) {
$table->comment = '用户表';
});
```