Answers for "collection pluck remove duplicates"

PHP
1

collection pluck remove duplicates

$userIds = collect($participants['items'])->pluck('user_id')->unique()->toArray();


//$unique = $collection->unique();
Posted by: Guest on August-01-2021

Browse Popular Code Answers by Language