Kolekcja Pluck Usuń duplikaty
$userIds = collect($participants['items'])->pluck('user_id')->unique()->toArray();
//$unique = $collection->unique();
Excited Elephant
$userIds = collect($participants['items'])->pluck('user_id')->unique()->toArray();
//$unique = $collection->unique();