value; } /** * Wire name scoped to a single entity id, e.g. "lt:reactions:sentiment.updated#42". */ public function scoped(int|string $id): string { return $this->value.'#'.$id; } /** * Format for an `hx-trigger` attribute, e.g. "lt:tickets:ticket.updated from:body". */ public function trigger(string $from = 'body'): string { return $this->value.($from !== '' ? ' from:'.$from : ''); } }