laravel / 10 / api / 10.x / illuminate / contracts / support / jsonable.html

Jsonable

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Contracts/Support/Jsonable.html