> $countries */ $countries = json_decode( file_get_contents(dirname(__DIR__) . '/Data/iso_countries.json'), true, flags: JSON_THROW_ON_ERROR, ); foreach ($countries as $index => $country) { Country::query()->updateOrCreate( ['alpha2' => $country['alpha2']], array_merge($country, [ 'is_active' => true, 'sort_order' => $index + 1, 'last_synced_at' => $now, 'iso_status' => 'official', 'source' => 'bundled-iso-3166-1', 'source_version' => '2026-06-15', ]), ); } } }