main
toArray
public function toArray($request): array { $this->withoutWrapping(); $course = $this->getResource();