Solved my own question:
the answer is User::chunk(200, function($users) { foreach ($users as $user) { // } });
Hope this helps somebody
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community