increments('id'); $table->string('name')->comment('分组名称'); $table->json('nodes')->nullable()->comment('关联的节点ID,多个用,号分隔'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('user_group'); } }