I have a code set on Laravel. This is doing dns verification, I want to verify a specific field in the meta tag I want.
Example code
public function verifyDomainDns()
{
$fqdn = sprintf('%s.%s', $this->getVerificationTxtName(), $this->name);
$results = collect(dns_get_record($fqdn, DNS_TXT));
$results = $results->where('type', 'TXT')
->where('txt', $this->verification_token);
$this->domain_verified = $results->isEmpty() ? self::UNVERIFIED : self::VERIFIED;
$this->save();
}
verification_token Auto-generated numbers registered in database
The meta tag I want to verify.
<meta name="book" content="verification_token" />