added article url to article resource

This commit is contained in:
2020-08-10 06:17:54 +05:00
parent cbe2c59898
commit 3e69fded50

View File

@@ -22,6 +22,7 @@ class ArticleResource extends JsonResource
"title" => $this->title,
"author" => $this->author,
"featured_image" => $this->featured_image,
"url" => $this->url,
"body" => $this->body,
"readtime" => (new ReadTime($this->body))->get(),
"source" => new SourceResource($this->source),