interface Jsonable (View source)

Methods

string
toJson(int $options = 0)

Convert the object to its JSON representation.

Details

string toJson(int $options = 0)

Convert the object to its JSON representation.

Parameters

int $options

Return Value

string

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.