nahid / talk

Talk is a real-time users messaging and chatting system for Laravel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why is withUser null?

Gildars opened this issue · comments

public function getThreads()
    {
        $conversations = Talk::threads();

        if (!$conversations) {
            return response()->json(["message" => trans('messages.threads.not_found')], 404);
        }

        return response()->json($conversations, 200);

изображение

This is my mistake) I sent messages to non-existing users.