Skip to content

Commit

Permalink
refactor lists() to pluck(), missed in #152
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgmyr committed Aug 11, 2016
1 parent b5b2ff6 commit 0a6f785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cmgmyr/Messenger/Traits/Messagable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0a6f785

Please sign in to comment.