how to delete duplicate records from table with keeping one copy laravel code example
Example: laravel remove duplicates from array
$array = array(1, 2, 2, 3);
$array = array_unique($array); // Array is now (1, 2, 3)
$array = array(1, 2, 2, 3);
$array = array_unique($array); // Array is now (1, 2, 3)