Laravel Community Tools by Tighten

Egi Gundari

Joined: 12 years ago
Total tricks: 2
Last trick: 12 years ago

Submitted tricks

In the official docs : http://laravel.com/docs/responses#special-responses, need to do `Response::json(...)` to create json response. Actually, if the returned value is an array or instance of arrayableinterface or jsonableinterface such as eloquent model, you could just return it, it'll be a json, magically.
egig 12 years ago 71958
For those who don't know. These ways of code are equivalent.
egig 12 years ago 10180