Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i create a conversation? #18

Closed
13dev opened this issue Aug 6, 2016 · 7 comments
Closed

how can i create a conversation? #18

13dev opened this issue Aug 6, 2016 · 7 comments

Comments

@13dev
Copy link

13dev commented Aug 6, 2016

how can i create a conversation?

@nahid
Copy link
Owner

nahid commented Aug 6, 2016

just send a message using user id.

Talk::sendMessageByUserId($userId);

@13dev
Copy link
Author

13dev commented Aug 6, 2016

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

@nahid
Copy link
Owner

nahid commented Aug 6, 2016

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);

@13dev
Copy link
Author

13dev commented Aug 6, 2016

sorry in this command

Talk::getInbox()

can you explain what is parameter's ?

@nahid
Copy link
Owner

nahid commented Aug 6, 2016

Please read the doc.
https://github.com/nahid/talk#getinbox

this method has two optional parameters $offset and $take

@13dev
Copy link
Author

13dev commented Aug 6, 2016

and what they do, can you explain?
thanks in advance

@nahid
Copy link
Owner

nahid commented Aug 6, 2016

Its helps to you to make pagination.

@nahid nahid closed this as completed Aug 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants