protected function setQuery($model, $class)
    {
        $this->query = new $model();

        if (method_exists($class, 'laratablesQueryConditions')) {
            $this->query = $class::laratablesQueryConditions($this->query);
        }
    }