From 0a6f785330b74a553d7da3259762e6ca57f87d81 Mon Sep 17 00:00:00 2001 From: Chris Gmyr Date: Wed, 10 Aug 2016 15:36:18 -0400 Subject: [PATCH] refactor lists() to pluck(), missed in #152 --- src/Cmgmyr/Messenger/Traits/Messagable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.