src/BaseRepositoryEloquent.php
protected function queryLimitOffset($query, $limit = null, $offset = 0)
    {
        $limit  = $limit ?: $this->limit;
        $offset = $offset ?: $this->offset;

        if ($limit) {
            $query->take($limit)->skip($offset);
        }

        return $query;
    }
protected function queryLimitOffset($query, $limit = null, $offset = 0)
    {
        $limit  = $limit ?: $this->limit;
        $offset = $offset ?: $this->offset;

        if ($limit) {
            $query->take($limit)->skip($offset);
        }

        return $query;
    }
protected function queryLimitOffset ( $ query , $ limit = null , $ offset = 0 ) { $ limit = $ limit ? : $ this -> limit ; $ offset = $ offset ? : $ this -> offset ; if ( $ limit ) { $ query -> take ( $ limit ) -> skip ( $ offset ) ; } return $ query ; }
Query limit and offset.

@param  \Illuminate\Database\Eloquent\Builder $query
@param  int|null                              $limit
@param  int                                   $offset
@return \Illuminate\Database\Eloquent\Builder
Query limit and offset .