Menu

## Conversation extends Model
in package

Conversation.php : 25

Class Conversation

Model for managing conversations between users.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$id : int
$last_message_at : DateTime
$messages : Collection|array<string|int, Message>
$others : Collection|array<string|int, User>
$updated_at : DateTime
$users : Collection|array<string|int, User>
$uuid : string
$dates : mixed
$fillable : mixed

#### Methods

getRouteKeyName() : string
  Get the route key name for the model.
messages() : HasMany
  Get messages in this conversation.
others() : Builder
  Get other users in this conversation (excluding authenticated user).
users() : BelongsToMany
  Get users participating in this conversation.

### Properties

#### $created_at

Conversation.php : 0
`public DateTime $created_at`

#### $id

Conversation.php : 0
`public int $id`

#### $last_message_at

Conversation.php : 0
`public DateTime $last_message_at`

#### $messages read-only

Conversation.php : 0
`public Collection|array<string|int, Message> $messages`

#### $others read-only

Conversation.php : 0
`public Collection|array<string|int, User> $others`

#### $updated_at

Conversation.php : 0
`public DateTime $updated_at`

#### $users read-only

Conversation.php : 0
`public Collection|array<string|int, User> $users`

#### $uuid

Conversation.php : 0
`public string $uuid`

#### $dates

Conversation.php : 34
`protected mixed $dates = ['last_message_at']`

#### $fillable

Conversation.php : 28
`protected mixed $fillable = ['last_message_at', 'uuid']`

### Methods

#### getRouteKeyName()

Conversation.php : 45

Get the route key name for the model.

`public getRouteKeyName() : string`

##### Return values

string

#### messages()

Conversation.php : 79

Get messages in this conversation.

`public messages() : HasMany`

##### Return values

HasMany

#### others()

Conversation.php : 69

Get other users in this conversation (excluding authenticated user).

`public others() : Builder`

##### Return values

Builder

#### users()

Conversation.php : 55

Get users participating in this conversation.

`public users() : BelongsToMany`

##### Return values

BelongsToMany

## Search results