Kolekcja laravel usuń duplikaty
$unique = $collection->unique();
Frightened Fox
$unique = $collection->unique();
$array = array(1, 2, 2, 3);
$array = array_unique($array); // Array is now (1, 2, 3)