I'm trying to retrieve data from two tables and in order using a hasMany relationship. i.e
Public childModel (){
return $this->hasMany(childModel); }
In the view when I run the foreach loop:
foreach($parentModel as $parentModel)
or
foreach($parentModel->childModel as $childModel)
then
I get json printed on my screen just fine (including the column I want to output.)
When I try I get "Trying to get property of non-object"
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lbMjzY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire