id(); $table->string('title', 128); $table->string('slug', 64); $table->longText('content'); $table->text('excerpt'); $table->string('status', 32)->comment('draft, published, archived'); $table->dateTime('published_at')->nullable(); $table->foreignId('author_id')->nullable(); $table->foreignId('category_id')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('posts'); } };