Search

Showing 7 of 1,975 result(s)

/blog/2018/04/21/laravel-5-fluent-api-the-public-api#content-converting-the-object-to-json-with-tojson

The toJson method will return a JSON encoded version of the data stored within the fluent instance. It internally does this by returning a call to PHP's json_encode function, passing in any $options that were supplied. Like the json_encode...

/blog/2018/04/21/laravel-5-message-bags-converting-the-message-bag-to-json-with-tojson

The toJson method will return a JSON encoded version of the data stored within the message bag instance. It internally does this by returning a call to PHP's json_encode function, passing in any $options that were supplied. Like the json_encode...