$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' => $request->user() ? $this->hasRead($request->user()) : false, 'media_type'=> $this->media_type, 'media_content'=> json_decode($this->media_content, true), 'created_at' => $this->created_at->toDateTimeString(), ]; } }