diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php new file mode 100644 index 0000000..e0f3306 --- /dev/null +++ b/app/Http/Controllers/CommentController.php @@ -0,0 +1,10 @@ +id(); + $table->foreignId("user_id")->constrained()->onDelete('cascade'); + $table->foreignId("post_id")->constrained()->onDelete('cascade'); + $table->string("comment"); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('comments'); + } +};