The way you query is not correct. This is the way the relations are stated.
http://laravel.com/docs/eloquent#one-to-many
Check the example there, you should query it differently, according to your model.
Regards,
Use var_dump($results)
or dd($results)
(var_dump and die) or use my debugbar: https://github.com/barryvdh/laravel-debugbar
Debugbar::info($results);
You would then see you don't have a collection, but a relation/query or something. Probably needs ->get()
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community