Answers for "laravel collection remove duplicates"

PHP
0

laravel remove duplicates from array

$array = array(1, 2, 2, 3);
$array = array_unique($array); // Array is now (1, 2, 3)
Posted by: Guest on December-23-2020
0

laravel collection remove duplicates

$unique = $collection->unique();
Posted by: Guest on March-09-2020

Code answers related to "laravel collection remove duplicates"

Browse Popular Code Answers by Language