I have this query:
$query->whereHas($key,function($q) use($option){
$q->whereIn('district', $option);
$q->whereIn('region', $option);
});
But its not working. I want to check district
and region
and i get an array from $option
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire