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();



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire