title: Collection WhereIn method
body: <p>I'm trying filtered a collection, but the code in the last row does not work. In this row the <code>$property-&gt;county_id</code> is an <code>integer</code>, the <code>params.county_id</code> is an <code>array</code>. I would like know the <code>array</code> contains the <code>integer</code>. </p>
  
  <p>I think the code is wrong, because the key (maybe) must be the <code>params.county_id</code>. How I can do this?</p>
  
  <p>Thanks the answers. </p>
  
  <pre><code>$buyerSearches = collect($items);
  
  $result = $buyerSearches
              -&gt;where('params.type', '=', $property-&gt;type)
              -&gt;where('params.sale_type', '=', $property-&gt;sale_type)
              -&gt;whereIn('params.contract_type', ['all', $property-&gt;contract_type])
              -&gt;where('params.min_price', '&lt;=', $property-&gt;price)
              -&gt;where('params.max_price', '&gt;=', $property-&gt;price)
              -&gt;whereIn($property-&gt;county_id, 'params.county_id');
  </code></pre>