From 1eb41ce9316301a6d7cde257fc2cd70e77688292 Mon Sep 17 00:00:00 2001 From: Niisse Date: Mon, 18 Mar 2024 18:00:42 -0700 Subject: [PATCH] Del pivot table as i don't need one heehee --- database/migrations/2024_03_04_125333_create_photos_table.php | 1 + 1 file changed, 1 insertion(+) diff --git a/database/migrations/2024_03_04_125333_create_photos_table.php b/database/migrations/2024_03_04_125333_create_photos_table.php index 0986f15..727f351 100644 --- a/database/migrations/2024_03_04_125333_create_photos_table.php +++ b/database/migrations/2024_03_04_125333_create_photos_table.php @@ -13,6 +13,7 @@ return new class extends Migration { Schema::create('photos', function (Blueprint $table) { $table->id(); + $table->foreignId('post_id')->constrained(); $table->string('image_src'); $table->string('description')->nullable();