$collection->toArray()
Converts the object into an array
$collection->toArray(Closure $map = null): array
Parameters
Name | Type | Default |
---|---|---|
$map | Closure |
null |
Return type
array
Converts the object into an array
$collection->toArray(Closure $map = null): array
Name | Type | Default |
---|---|---|
$map | Closure |
null |
array