Let's say there is a User
model that embedsMany House
models.
public function houses()
{
return $this->embedsMany('App\House');
}
Is there a way to retrieve a list of all houses for all members?
Passing $houses = House:all();
to the view, returns nothing.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lwsUKc
via IFTTT
Aucun commentaire:
Enregistrer un commentaire