main
toArray
public function toArray($request) { $fields = [ 'id' => $this->resource->id, 'created_at' => $this->resource->created_at,