W3cubDocs

/Laravel 5.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/5.8/Illuminate/Contracts/Support/Jsonable.html