increments('id'); $table->tinyInteger('is_display')->default('1')->comment('是否显示(1:是,0:否)'); $table->integer('type_id')->comment('链接分类'); $table->string('link_title')->comment('链接标题'); $table->string('link_url')->comment('链接地址'); $table->string('link_logo')->comment('链接的LOGO'); $table->string('note')->comment('备注')->nullable(); $table->integer('list_order')->default(0)->comment('顺序'); $table->integer('subsite_id')->default(0)->comment('分站信息(0:总站)'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('links'); } }