$data */ public function execute(Comment $comment, array $data): Comment { $result = $this->repository->update($comment, $data); ModelChanged::dispatch(Comment::class, 'updated'); return $result; } }