main
toArray
public function toArray($request = null): array { return [ 'id' => $this->resource->id, 'name' => $this->resource->name,