I'm working on a local project with Laravel 5. I'm trying to grab what could potentially be (or become) huge amounts of data. I'm doing so
$tickets = Ticket::getResolvedTicketsBetween($start,$end)->chunk(200, function($chunkOfTickets){
foreach ($chunkOfTickets as $ticket) {
echo $ticket->id;
}
});
The problem is I'm getting the error
array_chunk() expects parameter 3 to be boolean, object given
What am I doing wrong? Can someone please help me, I'm following the documentation accordingly... I think...