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();