filter array duplicates when using pluck laravel code example Example: remove repeated columns laravel $unique = $collection->unique();