foreign('pack_id')->references('id')->on('packs'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('servers', function (Blueprint $table) { $table->dropForeign(['pack_id']); }); } }