src/Collection.php
public function remove($element)
    {
        $trueId = $this->getTrueId($element);

        $this->objects[$trueId]->destroy();

        unset($this->objects[$trueId]);
        unset($this->ids[$trueId]);
    }
public function remove($element)
    {
        $trueId = $this->getTrueId($element);

        $this->objects[$trueId]->destroy();

        unset($this->objects[$trueId]);
        unset($this->ids[$trueId]);
    }
Remove the element from the collection

@return void