how to remove unique values from laravel query code example Example: laravel collection remove duplicates $unique = $collection->unique();