$pages->toArray($callback = null)
Converts the collection to a good old array. You can pass a callback which will be applied to all items in the collection before conversion
-
$callback (closure)
Filter callback for each item -
return (array)