id(); $table->string('title')->comment('标题'); $table->text('content')->nullable()->comment('内容'); $table->string('cover')->nullable()->comment('封面'); $table->string('category')->nullable()->comment('分类'); $table->string('t_ids')->nullable()->comment('标签'); $table->timestamp('published_at')->nullable()->comment('发布时间'); $table->unsignedTinyInteger('is_enable')->default(1)->comment('显示开关'); $table->unsignedTinyInteger('is_recommend')->default(0)->comment('推荐开关'); $table->unsignedInteger('sort')->default(0)->comment('排序'); $table->text('appendixes')->nullable()->comment('附件'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('articles'); } };