-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Two user conversations #261
Comments
You will need to actually add a second user and pass the Request object to retrieve it, that's what you are missing public function getConversationWithTwoUsers(Request $request, $withUserId) |
This only gets conversations that are |
Hi sir
I have tried to get the conversations message with two users(sender & receiver) but it is return null ,please see my function and tell
public function getConversationWithTwoUsers(Request $request, $withUserId)
{
$user = Auth::user();
$conversation = Chat::conversations()->between($user, User::find($withUserId));
dd($conversation);
}
return null
Thank you
The text was updated successfully, but these errors were encountered: