$nestcollection->toArray()
Converts all objects in the collection to an array. This can also take a callback function to further modify the array result.
Converts all objects in the collection to an array. This can also take a callback function to further modify the array result.