I’m looping through a structure field but I’d like to render them in groups of 3 (123, 456, 789). I considered pagination for this but I can’t quite get it to work:
$deliverables = $page->deliverables_webdevelopment()->toStructure()->paginate(3);
foreach($deliverables as $deliverable):
...
This returns the first three, but how to I get the next “page” without have to use a URL parameter? $deliverables->pagination()->nextPage(); returns 2 but how do I return those entries?