diff --git a/src/Cmgmyr/Messenger/Traits/Messagable.php b/src/Cmgmyr/Messenger/Traits/Messagable.php index a341e72..986bc5d 100644 --- a/src/Cmgmyr/Messenger/Traits/Messagable.php +++ b/src/Cmgmyr/Messenger/Traits/Messagable.php @@ -63,7 +63,7 @@ public function threadsWithNewMessages() { $threadsWithNewMessages = []; - $participants = Models::participant()->where('user_id', $this->id)->lists('last_read', 'thread_id'); + $participants = Models::participant()->where('user_id', $this->id)->pluck('last_read', 'thread_id'); /** * @todo: see if we can fix this more in the future.