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

        if (method_exists($class, 'laratablesQueryConditions')) {
            $this->query = $class::laratablesQueryConditions($this->query);
        }
    }
protected function setQuery($model, $class)
    {
        $this->query = new $model();

        if (method_exists($class, 'laratablesQueryConditions')) {
            $this->query = $class::laratablesQueryConditions($this->query);
        }
    }
protected function setQuery ( $ model , $ class ) { $ this -> query = new $ model ( ) ; if ( method_exists ( $ class , 'laratablesQueryConditions' ) ) { $ this -> query = $ class :: laratablesQueryConditions ( $ this -> query ) ; } }
Initialises Query object.

@param \Illuminate\Database\Eloquent\Model The model to work on
@param Class to customize query/data/logic

@return void
Initialises Query object .