$this->id, 'title' => $this->title, 'cover' => $this->cover, 'subtitle' => $this->subtitle, 'content'=>$this->content, 'points'=> $this->points, 'likes' => $this->likes, 'like_status' => $this->whenLoaded('likesInfo', function () { return $this->likesInfo->count() > 0; }, false), 'has_read' => $this->hasRead($request->user()), 'media_type'=> $this->media_type, 'media_content'=> json_decode($this->media_content, true), 'created_at' => $this->created_at->toDateTimeString(), ]; } }