W3cubDocs

/Laravel 8

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/8.x/Illuminate/Contracts/Support/Jsonable.html