link added to article resource

This commit is contained in:
2020-08-09 00:44:44 +05:00
parent 6ae52d5519
commit a254315c77

View File

@@ -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
];
}