Skip to content

v6.14.0

Choose a tag to compare

@musonza musonza released this 10 Apr 16:00
· 5 commits to master since this release
63633e6

What's New

Conversation Name Column (#358)

Conversations can now have an optional name for identification and filtering — useful for chatrooms and named channels.

$conversation = Chat::createConversation($participants, [], 'general');
Chat::conversations()->setParticipant($user)->name('general')->get();

Message Type Filtering (#359)

Filter messages by type (text, image, attachment, etc.) when retrieving them from a conversation.

Chat::conversation($conversation)
    ->setParticipant($user)
    ->ofType('image')
    ->getMessages();

Conversation Partners (#360)

Get all unique models a user has ever conversed with, directly from the model.

$partners = $user->conversationPartners();

Migration Required

This release adds a name column to the chat_conversations table. Run migrations after updating:

php artisan migrate