public function remove(Model $object)
    {
        foreach ($this as $index => $item) {
            if ($item === $object) {
                $this->removeAt($index);
            }
        }
    }
public function remove(Model $object)
    {
        foreach ($this as $index => $item) {
            if ($item === $object) {
                $this->removeAt($index);
            }
        }
    }
public function remove ( Model $ object ) { foreach ( $ this as $ index => $ item ) { if ( $ item === $ object ) { $ this -> removeAt ( $ index ) ; } } }
Remove a specific object from the collection

@param Model $object
Remove a specific object from the collection