*/ public function toArray($request): array { return [ 'type' => 'playlist_collaborators', 'id' => $this->collaborator->id, 'name' => $this->collaborator->name, 'avatar' => $this->collaborator->avatar, ]; } }