title: Distinct is not working?
body: <pre><code>  $data = Districts::distinct()-&gt;whereRaw('LOWER(district) like ?', [strtolower('%'.$district . '%')])-&gt;orWhereRaw('LOWER(region) like ?', [strtolower('%'.$district . '%')])-&gt;select('region', 'district')-&gt;get();
  </code></pre>
  
  <p>I have this query, but problem is that distinct not working. I get for example three records for same thing. Any suggestion?<a href="https://i.stack.imgur.com/sczD7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sczD7.png" alt="enter image description here"></a></p>