increments('id'); $table->string('name')->comment('权限名'); $table->string('label')->comment('权限解释名称'); $table->string('description')->comment('描述与备注'); $table->tinyInteger('parent_id')->comment('级别'); $table->string('icon')->comment('图标'); $table->timestamps(); }); \Illuminate\Support\Facades\DB::statement("ALTER TABLE " . app('db')->getTablePrefix() . "yz_admin_permissions comment '角色管理-权限表'");//表注释 } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('yz_admin_permissions'); } }