Designs and API Routes
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user