src/QueryDataTable.php
protected function getBaseQueryBuilder($instance = null)
    {
        if (! $instance) {
            $instance = $this->query;
        }

        if ($instance instanceof EloquentBuilder) {
            return $instance->getQuery();
        }

        return $instance;
    }
protected function getBaseQueryBuilder($instance = null)
    {
        if (! $instance) {
            $instance = $this->query;
        }

        if ($instance instanceof EloquentBuilder) {
            return $instance->getQuery();
        }

        return $instance;
    }
protected function getBaseQueryBuilder ( $ instance = null ) { if ( ! $ instance ) { $ instance = $ this -> query ; } if ( $ instance instanceof EloquentBuilder ) { return $ instance -> getQuery ( ) ; } return $ instance ; }
Get the base query builder instance.

@param mixed $instance
@return \Illuminate\Database\Query\Builder
Get the base query builder instance .