email)->send(new ClaimApproved($claim)); */ class ClaimApproved extends Mailable { public function __construct( public readonly NameClaim $claim, ) {} public function envelope(): Envelope { return new Envelope( subject: "{$this->claim->name}.lthn — Your Name Claim Has Been Approved", ); } public function content(): Content { return new Content( htmlString: $this->buildHtml(), ); } private function buildHtml(): string { $name = e($this->claim->name); $fqdn = "{$name}.lthn"; return <<
Great news — your claim for {$fqdn} has been approved and registered on the Lethean blockchain.
Name
{$fqdn}
Lethean CIC — Community Interest Company
lthn.io