id(); $table->string('title')->comment('标题'); $table->mediumText('content')->nullable()->comment('内容'); // 类型 $table->tinyInteger('type')->default(0)->comment('类型1校友动态2业界动态'); // 排序 $table->integer('sort')->default(0)->comment('排序'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('articles'); } };