How to update every 2 recording?

Help to write a query that has a large number of records in table, I need to go through all records and update the field. But too much and need to break this query . Help make the cycle and the request itself
March 23rd 20 at 19:28
1 answer
March 23rd 20 at 19:30
Model::chunk(function($models){...})

Find more questions by tags Laravel