mercredi 4 septembre 2019

Orm eloquent not return nested join

The query works properly, but the paramenter in the function, inside contents not are considered. Why?

$res = Obj::with(['city', 'opening', 'geoposition','contents' => function ($query) use ($id_address,$name) {
           $query->where('id_address', $id_address)->where('title', $name);
} , 'images'])->get();



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2MUy2GO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire