public function nextPage(Paginator $paginator) { if (!$paginator->hasMorePages()) { return; } return $this->currentPage() + 1; }