public function queryBuilder()
    {
        if (!$this->queryBuilder) {
            $this->queryBuilder = $this->grid->model()->getQueryBuilder();
        }

        return $this->queryBuilder;
    }
public function queryBuilder()
    {
        if (!$this->queryBuilder) {
            $this->queryBuilder = $this->grid->model()->getQueryBuilder();
        }

        return $this->queryBuilder;
    }
public function queryBuilder ( ) { if ( ! $ this -> queryBuilder ) { $ this -> queryBuilder = $ this -> grid -> model ( ) -> getQueryBuilder ( ) ; } return $ this -> queryBuilder ; }
Get model query builder.

@return \Illuminate\Database\Eloquent\Builder
Get model query builder .