Meta information and article body cast

This commit is contained in:
2020-08-10 21:23:16 +05:00
parent 51076aca33
commit 8d8e174095
6 changed files with 23 additions and 10 deletions

View File

@@ -21,6 +21,7 @@ class ArticleResource extends JsonResource
"id" => $this->id,
"title" => $this->title,
"author" => $this->author,
"meta" => $this->meta,
"featured_image" => $this->featured_image,
"url" => $this->url,
"body" => $this->body,
@@ -28,8 +29,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,
"meta" => $this->meta
"published_date" => $this->published_date
];
}
}