Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.

Commit

Permalink
changed baserepo ->page default value
Browse files Browse the repository at this point in the history
  • Loading branch information
mistenkt committed Sep 22, 2017
1 parent 1701e50 commit 0d290c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BaseRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function orderBy($column, $direction = 'ASC')
*
* @return $this
*/
public function page($page, $perPage = 15)
public function page($page = 1, $perPage = 15)
{
$offset = ($page * $perPage) - $perPage;

Expand Down
2 changes: 1 addition & 1 deletion src/BaseRepositoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function orderBy($column, $direction = 'ASC');
*
* @return $this
*/
public function page($page, $perPage = 15);
public function page($page = 1, $perPage = 15);

/**
* Count total rows
Expand Down

0 comments on commit 0d290c3

Please sign in to comment.