Meta data and article resources in topic,source

This commit is contained in:
2020-08-10 19:12:28 +05:00
parent ab1f003a6d
commit 51076aca33
4 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,8 @@ class ArticleResource extends JsonResource
"source" => new SourceResource($this->source),
"topics" => TopicResource::collection($this->topics),
"link" => url(route('article.show',$this->id)),
"published_date" => $this->published_date
"published_date" => $this->published_date,
"meta" => $this->meta
];
}
}