protected function getModelInstanceQuery(Model $model)
    {
        $query = $model->query();

        $this->applyOrderingToModelInstanceQuery($query);
        $this->applyStartAndStopLimitsToQuery($query);

        return $query;
    }
protected function getModelInstanceQuery(Model $model)
    {
        $query = $model->query();

        $this->applyOrderingToModelInstanceQuery($query);
        $this->applyStartAndStopLimitsToQuery($query);

        return $query;
    }
protected function getModelInstanceQuery ( Model $ model ) { $ query = $ model -> query ( ) ; $ this -> applyOrderingToModelInstanceQuery ( $ query ) ; $ this -> applyStartAndStopLimitsToQuery ( $ query ) ; return $ query ; }
Returns base query for returning all model instances.

@param Model $model
@return Builder
Returns base query for returning all model instances .