Kolekcja Pluck Usuń duplikaty



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


//$unique = $collection->unique();


Excited Elephant