id(); $table->string('title'); $table->string('slug')->unique(); $table->text('summary')->nullable(); $table->longText('content')->nullable(); $table->string('featured_image')->nullable(); $table->string('author')->nullable(); $table->boolean('active')->default(true); $table->timestamp('published_at')->nullable(); $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); $table->string('seo_title')->nullable(); $table->string('seo_description')->nullable(); $table->string('seo_keywords')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('news'); } };