activeUserId = $id; $this->emitTo('chat.message-window', 'updateRecipientId', $id); redirect()->route('chat.show', $id); } }