collection pluck remove duplicates

Solutions on MaxInterview for collection pluck remove duplicates by the best coders in the world

showing results for - "collection pluck remove duplicates"
Ugo
26 Aug 2019
1
2
3$userIds = collect($participants['items'])->pluck('user_id')->unique()->toArray();
4
5
6//$unique = $collection->unique();
7
8
9