Closed 13dev closed 8 years ago
just send a message using user id.
Talk::sendMessageByUserId($userId);
ty ! what did not realize was that we passed parameter in this command? if you put 0 or nothing return all inbox if you pu the user id return empty array
You may first set authenticated users id like this
Talk::setAuthUserId(auth()->user()->id);
and then call this method with a receiver id
Talk::sendMessageByUserId($userId);
sorry in this command
Talk::getInbox()
can you explain what is parameter's ?
Please read the doc. https://github.com/nahid/talk#getinbox
this method has two optional parameters $offset
and $take
and what they do, can you explain? thanks in advance
Its helps to you to make pagination.
how can i create a conversation?