public function chunk($chunkSize, $callback)
{
$totalItems = $this->count();
if (!$totalItems) {
return $this;
}
$start = 0;
while ($start < $totalItems - 1) {
$this->get(true, $start, $chunkSize)->transform($callback);
$start += $chunkSize;
}
return $this;
}