Meta information and article body cast
This commit is contained in:
@@ -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
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user