id(); $table->foreignId('task_id')->constrained(); $table->string('name'); $table->text('comment'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('comments'); } }