Skip to content

Releases: musonza/chat

v3.2.2

23 Jan 01:53

Choose a tag to compare

Added an extra orderBy in getConversationsList (#124)

* Added an extra orderBy in getConversationsList

Basically, this means: Order by `'mc_conversations.updated_at' desc` but whenever there are duplicated values for update_at then order those values by `'mc_conversations.id' desc.

v3.2.1

19 Jan 02:12

Choose a tag to compare

#121

Creating a conversation of type private / public

$participants = [$userId, $userId2,...];

// Create a private conversation
$conversation = Chat::createConversation($participants)->makePrivate();

// Create a public conversation
$conversation = Chat::createConversation($participants)->makePrivate(false);

Get user conversations by type

// private conversations
$conversations = Chat::conversations()->for($user)->isPrivate()->get();

// public conversations
$conversations = Chat::conversations()->for($user)->isPrivate(false)->get();

// all conversations
$conversations = Chat::conversations()->for($user)->get();

v3.2.0

18 Jan 14:35

Choose a tag to compare

v3.1.2

07 Jan 17:24

Choose a tag to compare

Change order of dropping tables

php artisan migrate:refresh returns error due to mc_conversations foreign key.

v3.1.1

14 Dec 19:26
6e3e175

Choose a tag to compare

Update README.md

v3.1.0

14 Dec 03:51
6e3e175

Choose a tag to compare

Update README.md

v3.0.4

11 Nov 23:42

Choose a tag to compare

specify foreign pivot key (#112)

* specify foreign pivot key

if the user model is different from the default user model that time it generating the custom table id column but this is should always user_id

* Update Conversation.php

v3.0.3

11 Sep 17:25

Choose a tag to compare

Update ConversationService.php (#102)

Added $data array to 'start' method arguments.

v3.0.2

09 Sep 00:40
c93cbef

Choose a tag to compare

Delete composer.lock

v3.0.1

05 Sep 03:39

Choose a tag to compare

add support for Laravel 5.7