main
toArray
public function toArray($request) { $this->withoutWrapping(); if ($this->resource instanceof Course) {