Designs and API Routes

This commit is contained in:
2020-08-09 03:43:00 +05:00
parent 55b98e1b86
commit 11a129ec3b
20 changed files with 125691 additions and 86 deletions

View File

@@ -15,6 +15,7 @@ class TopicResource extends JsonResource
public function toArray($request)
{
return [
"id" => $this->id,
"name" => $this->name,
"slug" => $this->slug,
"link" => url(route('topics.show', $this->slug))