public function get(Request $request)
 {
     $messages = Messages::select(['users.avatar', 'users.nickname', 'users.id as user_id', 'messages.message', 'messages.created_at'])->leftJoin('users', 'messages.user_id', '=', 'users.id')->orderBy('messages.id', 'DESC')->limit(30)->get()->toArray();
     foreach ($messages as $key => $msg) {
         $messages[$key]['created_at'] = Helper::getGoodDate($msg['created_at']);
     }
     $this->user->last_seen = Carbon::now()->toDateTimeString();
     $this->user->save();
     return response()->json(array_reverse($messages));
 }