threads() public method

* retrieve all message thread without soft deleted message with latest one message and sender and receiver user model
public threads ( $user, $offset, $take )
$user
$offset
$take
Beispiel #1
0
 /**
  * fetch all inbox for currently loggedin user with pagination.
  *
  * @param int $offset
  * @param int $take
  * @return array
  */
 public function getInbox($offset = 0, $take = 20)
 {
     return $this->conversation->threads($this->authUserId, $offset, $take);
 }