link added to article resource
This commit is contained in:
@@ -24,6 +24,7 @@ class ArticleResource extends JsonResource
|
||||
"body" => $this->body,
|
||||
"source" => new SourceResource($this->source),
|
||||
"topics" => TopicResource::collection($this->topics),
|
||||
"link" => url(route('article.show',$this->id)),
|
||||
"published_date" => $this->published_date
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user