$this->id, "title" => $this->title, "author" => $this->author, "meta" => $this->meta, "featured_image" => $this->featured_image, "url" => $this->url, "body" => $this->body, "readtime" => (new ReadTime($this->body))->get(), "source" => new SourceResource($this->source), "topics" => TopicResource::collection($this->topics), "link" => url(route('api.article.show',$this->id)), "published_date" => $this->published_date ]; } }