mardi 31 janvier 2017

How to use whereIn to check multiple columns?

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



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

Aucun commentaire:

Enregistrer un commentaire