title: Distinct in Laravel 5 not working properly
body: <p>I want the distinct names from my database table.The table contains column id and name.</p>
  
  <p>I have tried<br><br>
   <code>$diff=Crud::distinct('name')-&gt;get();</code> <br>
  <code>$diff=Crud::distinct()-&gt;get();</code> <br><br>
  Both of them not worked.They are returning the result with duplicates.Here Crud is my eloquent model.</p>
  
  <p>But when i use</p>
  
  <pre><code>$cnt=Crud::distinct()-&gt;count('name'); //returns the correct count
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$u=Crud::all();
  $diff=$u-&gt;unique('name'); //returns the distinct names
  </code></pre>
  
  <p>Why duplicate values are returned while i'm using the distinct? I want distinct names by using distinct.<br><br>
  <b>Thanks</b>.</p>