I am using a query that returns value perfectly but it adds key number to the collection. How can I remove the index number?
Here is the retrieved data
In order to get a collection without a index you have to add the "values" method
$collection->unique('id')->values();