*/ class EntryUpdated extends WikiUpdatedEvent implements UpdateRelatedIndicesEvent { public function __construct(Entry $entry) { parent::__construct($entry); $this->initializeEmbedFields($entry); } public function updateRelatedIndices(): void { $entry = $this->getModel(); $entry->videos->each(fn (Video $video) => $video->searchable()); } }