public function get()
    {
        if (is_null($this->isPrivate)) {
            return $this->conversation->getList($this->user, $this->perPage, $this->page, $pageName = 'page');
        }

        return $this->conversation->getUserConversations($this->user, [
          'perPage' => $this->perPage,
          'page' => $this->page,
          'pageName' => 'page',
          'isPrivate' => $this->isPrivate
        ]);
    }
public function get()
    {
        if (is_null($this->isPrivate)) {
            return $this->conversation->getList($this->user, $this->perPage, $this->page, $pageName = 'page');
        }

        return $this->conversation->getUserConversations($this->user, [
          'perPage' => $this->perPage,
          'page' => $this->page,
          'pageName' => 'page',
          'isPrivate' => $this->isPrivate
        ]);
    }
public function get ( ) { if ( is_null ( $ this -> isPrivate ) ) { return $ this -> conversation -> getList ( $ this -> user , $ this -> perPage , $ this -> page , $ pageName = 'page' ) ; } return $ this -> conversation -> getUserConversations ( $ this -> user , [ 'perPage' => $ this -> perPage , 'page' => $ this -> page , 'pageName' => 'page' , 'isPrivate' => $ this -> isPrivate ] ) ; }
Get Conversations with lastest message.

@param object $user

@return Illuminate\Pagination\LengthAwarePaginator
Get Conversations with lastest message .