Menu

## ConversationReply extends Component
in package

ConversationReply.php : 24

Class ConversationReply

Livewire component responsible for handling replies within an existing conversation.

This component handles:

- Message validation
- Creating new messages
- Updating conversation metadata
- Resetting read status for other participants
- Broadcasting message events in real-time

### Table of Contents

#### Properties

$body : string
  Message body entered by the user.
$conversation : Conversation
  Conversation instance to which the reply belongs.

#### Methods

mount() : void
  Lifecycle hook executed when the component is mounted.
render() : View
  Render the Livewire component view.
reply() : void
  Send a reply message in the conversation.

### Properties

#### $body

ConversationReply.php : 38

Message body entered by the user.

`public string $body = ''`

#### $conversation

ConversationReply.php : 31

Conversation instance to which the reply belongs.

`public Conversation $conversation`

### Methods

#### mount()

ConversationReply.php : 49

Lifecycle hook executed when the component is mounted.

`public mount(Conversation $conversation) : void`

Assigns the conversation model instance to the component.

##### Parameters

$conversation : Conversation

#### render()

ConversationReply.php : 100

Render the Livewire component view.

`public render() : View`

Displays the conversation reply input UI.

##### Return values

View

#### reply()

ConversationReply.php : 64

Send a reply message in the conversation.

`public reply() : void`

Validates the message body, creates a new message, updates conversation metadata, resets read status for other participants, broadcasts the message, and emits a Livewire event.

## Search results