2424use League \CommonMark \MarkdownConverter ;
2525
2626/**
27- * @template TRead of Read
27+ * @template TMessageRead of MessageRead
2828 * @template TConversation of Conversation
2929 * @template TUser of User
3030 *
3737 * @property TConversation $conversation
3838 * @property ?int $user_id
3939 * @property ?TUser $user
40- * @property Collection<int, Read > $reads
40+ * @property Collection<int, MessageRead > $reads
4141 * @property ?ArrayObject<array-key, mixed> $metadata
4242 * @property ?Carbon $created_at
4343 * @property ?Carbon $read_at
@@ -90,7 +90,7 @@ public static function getModelUser(): string
9090 }
9191
9292 /**
93- * @return class-string<TRead >
93+ * @return class-string<TMessageRead >
9494 */
9595 public static function getModelRead (): string
9696 {
@@ -114,7 +114,7 @@ public function user(): BelongsTo
114114 }
115115
116116 /**
117- * @return HasMany<TRead , $this>
117+ * @return HasMany<TMessageRead , $this>
118118 */
119119 public function reads (): HasMany
120120 {
@@ -139,7 +139,7 @@ public function markAsReadBy(User|int $user, ?Carbon $date = null): static
139139 {
140140 $ userId = $ user instanceof User ? $ user ->getKey () : $ user ;
141141
142- $ read = new Read ;
142+ $ read = new MessageRead ;
143143 $ read ->user_id = $ userId ;
144144
145145 if ($ date ) {
0 commit comments