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