src/BaseRepository.php
public function query()
    {
        $this->applyCriteria();

        if ($this->model instanceof Model) {
            return $this->model->query();
        }

        return clone $this->model;
    }
public function query()
    {
        $this->applyCriteria();

        if ($this->model instanceof Model) {
            return $this->model->query();
        }

        return clone $this->model;
    }
public function query ( ) { $ this -> applyCriteria ( ) ; if ( $ this -> model instanceof Model ) { return $ this -> model -> query ( ) ; } return clone $ this -> model ; }
Give unexecuted query for current criteria

@return EloquentBuilder
Give unexecuted query for current criteria