remove duplicates objects from collection laravel code example Example: laravel collection remove duplicates $unique = $collection->unique();