Laravel Collection Public API: chunk
…ng with large collections in that it allows developers to create smaller collections to work with. The chunk method defines two parameters: $size , which is used to control how large each newly created collection will be; and $preserveKeys ,...