Open ghost opened 6 years ago
@ghost getting the same error. Did you manage to fix? how?
(1/1) ErrorExceptionTrying to get property of non-object
in ConversationRepository.php (line 107) at HandleExceptions->handleError(8, 'Trying to get property of non-object', '/Users/username/Sites/Web/myownwebsite/vendor/nahid/talk/src/Conversations/ConversationRepository.php', 107, array('user' => 4, 'order' => 'desc', 'offset' => 0, 'take' => 20, 'conv' => object(Conversation), 'msgThread' => object(Collection), 'threads' => array(object(stdClass), object(stdClass)), 'thread' => object(Conversation), 'collection' => object(stdClass), 'conversationWith' => object(User)))in ConversationRepository.php (line 107) at ConversationRepository->threads(4, 'desc', 0, 20)in Talk.php (line 283) at Talk->getInbox()in MensajesController.php (line 66)
this is my model in my controller
public function hilos() { $inboxes = Talk::user(auth()->user()->id)->getInbox();
im trying to get all the inbox for a user but its not working, im getting this ---->
(1/1) ErrorExceptionTrying to get property of non-object
in ConversationRepository.php (line 107) at HandleExceptions->handleError(8, 'Trying to get property of non-object', '/Users/username/Sites/Web/myownwebsite/vendor/nahid/talk/src/Conversations/ConversationRepository.php', 107, array('user' => 4, 'order' => 'desc', 'offset' => 0, 'take' => 20, 'conv' => object(Conversation), 'msgThread' => object(Collection), 'threads' => array(object(stdClass), object(stdClass)), 'thread' => object(Conversation), 'collection' => object(stdClass), 'conversationWith' => object(User)))in ConversationRepository.php (line 107) at ConversationRepository->threads(4, 'desc', 0, 20)in Talk.php (line 283) at Talk->getInbox()in MensajesController.php (line 66)
this is my model in my controller
public function hilos() { $inboxes = Talk::user(auth()->user()->id)->getInbox();