id(); $table->string('title'); $table->text('message'); $table->string('author_name')->nullable(); $table->foreignId('news_id')->constrained()->onDelete('cascade'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('comments'); } };