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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire