public function drop($columns)
    {
        if (!is_array($columns)) {
            $columns = [$columns];
        }

        $this->compileWheres();
        $result = $this->query->replace(function ($doc) use ($columns) {
            return $doc->without($columns);
        })->run();

        return 0 == (int) $result['errors'];
    }
public function drop($columns)
    {
        if (!is_array($columns)) {
            $columns = [$columns];
        }

        $this->compileWheres();
        $result = $this->query->replace(function ($doc) use ($columns) {
            return $doc->without($columns);
        })->run();

        return 0 == (int) $result['errors'];
    }
public function drop ( $ columns ) { if ( ! is_array ( $ columns ) ) { $ columns = [ $ columns ] ; } $ this -> compileWheres ( ) ; $ result = $ this -> query -> replace ( function ( $ doc ) use ( $ columns ) { return $ doc -> without ( $ columns ) ; } ) -> run ( ) ; return 0 == ( int ) $ result [ 'errors' ] ; }
Remove one or more fields.

@param mixed $columns

@return int
Remove one or more fields .