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

Methods

collect()

Get a collection containing the underlying array.

TReturn
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

TReturn toArray()

Get the instance as an array.

Return Value

TReturn

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.