Search

Showing 7 of 1,216 result(s)

/blog/2018/04/21/laravel-5-fluent-api-the-public-api#content-signature-2

The signature of the toArray method is: public function toArray();

/blog/2018/04/21/laravel-5-fluent-api-the-public-api#content-converting-the-data-object-to-something-json-serializable-with-jsonserialize

The jsonSerialize method internally returns a call to toArray . Because of this, toArray , jsonSerialize and getAttributes are all functionally equivalent. The jsonSerialize method exists to satisfy PHP's JsonSerializable interface, which allows...

/blog/2018/04/21/laravel-5-fluent-api-the-public-api#content-signature-3

The signature of the jsonSerialize method is: public function jsonSerialize();

/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...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.