Skip to content

Commit

Permalink
dont limit columns selection while chunking by id (#13137)
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid authored and taylorotwell committed Apr 13, 2016
1 parent 3079175 commit fbb4bda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1355,8 +1355,7 @@ public function forPage($page, $perPage = 15)
*/
public function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
{
return $this->select($column)
->where($column, '>', $lastId)
return $this->where($column, '>', $lastId)
->orderBy($column, 'asc')
->take($perPage);
}
Expand Down

0 comments on commit fbb4bda

Please sign in to comment.