A lot has changed since version 3.
Try https://laravel.com/docs/5.0/eloquent#converting-to-arrays-or-json
Assuming that your are really using 5.0, or https://laravel.com/docs/5.0/eloquent#converting-to-arrays-or-json for 5.1+
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community