<?php
 namespace App\EventHooks\Catalog; use App\EventHooks\HookEvent; use App\Models\Tld; class TldAdded extends HookEvent { public const HOOK = 'TopLevelDomainAdd'; public function tld(): ?Tld { $id = $this->get('tld_id'); return $id ? Tld::find($id) : null; } } 