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.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire