title: Remove duplicate attributes from a collection Laravel
body: <p>For some strange reason, my collection (returned from query) is showing duplicate attribute <code>4 times</code> exactly. Is there a way to remove duplicate or repeated attributes. </p>
  
  <pre><code>#attributes: array:2 [▼
          "name" =&gt; "Ram Inden"
          "features" =&gt; "2,2,2,2,3,3,3,3,4,4,4,4"
  </code></pre>
  
  <p>In this collection, the features attributes only should have <code>2,3,4</code> but it's repeated four times, and I don't know why. In my database it's only <code>2,3,4</code>. </p>
  
  <p>Another thing, this thing only appears at a Live server, my localhost works fine. </p>
  
  <p>Any help would be really appreciated</p>