I have collection in Laravel:
Collection {#450 ▼
  #items: array:2 [▼
    0 => Announcement {#533 ▶}
    1 => Announcement {#553 ▶}
  ]
}
It is the same items. How ti delete one of them?
Full code is:
public function announcements()
    {
        $announcements = $this->categories_ann->map(function ($c) {
            return $c->announcements->map(function ($a) {
                $a->subsribed = true;
                return $a;
            });
        });
        $flattened = $announcements->groupBy("id")->flatten();
        return $flattened;
    }
 
     
     
    