class ArrayObject extends ArrayObject implements Arrayable, JsonSerializable (View source)

Methods

collect()

Get a collection containing the underlying array.

TValue>
toArray()

Get the instance as an array.

array
jsonSerialize()

Get the array that should be JSON serialized.

Details

Collection collect()

Get a collection containing the underlying array.

Return Value

Collection

TValue> toArray()

Get the instance as an array.

Return Value

TValue>

array jsonSerialize()

Get the array that should be JSON serialized.

Return Value

array

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.