id(); $table->string('name')->index()->comment('数据库名称'); $table->string('type')->comment('数据库类型'); $table->string('username')->comment('数据库用户名'); $table->string('password')->comment('数据库密码')->nullable(); $table->string('note')->comment('备注')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('databases'); } };