public function sendMessageLogTo($to, $with_id = null)
 {
     if ($with_id) {
         $ids = [$with_id, $to->user->id];
         $messages = Message::ofWith($ids);
     } else {
         $messages = Message::ofWith();
     }
     $messages = $messages->latestFirst()->take(50)->get()->toArray();
     $message['topic'] = 'messages';
     $message['data'] = $messages;
     $to->send($message);
 }