src/Collection/Habit/AttributeTrait.php
public function delete($value)
    {
        $index = $this->index($value);

        if ($index !== false) {
            $this->remove($index);
        }

        return $this;
    }
public function delete($value)
    {
        $index = $this->index($value);

        if ($index !== false) {
            $this->remove($index);
        }

        return $this;
    }
public function delete ( $ value ) { $ index = $ this -> index ( $ value ) ; if ( $ index !== false ) { $ this -> remove ( $ index ) ; } return $ this ; }
Removes an attribute by value

@param $value
@return $this
Removes an attribute by value