update email template

This commit is contained in:
baodev0
2026-09-09 16:56:22 +07:00
parent d3d9f76ba0
commit 2365ef72e9
210 changed files with 6335 additions and 4688 deletions
@@ -0,0 +1,19 @@
<?php
namespace App\Integrations\Domain\Support;
use Illuminate\Support\Facades\DB;
/** Resolves a source `dns_manager_servers.id` to the local row via `legacy_id`. */
class DnsServerIdResolver
{
/** @var array<int, int>|null */
private static ?array $map = null;
public function resolve(int $legacyServerId): ?int
{
self::$map ??= DB::table('dns_manager_servers')->whereNotNull('legacy_id')->pluck('id', 'legacy_id')->all();
return self::$map[$legacyServerId] ?? null;
}
}