We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83618ee commit fa19a91Copy full SHA for fa19a91
1 file changed
src/Illuminate/Database/Query/Builder.php
@@ -1786,14 +1786,12 @@ public function getPaginationCount()
1786
* @param array $columns
1787
* @return \Illuminate\Pagination\Paginator
1788
*/
1789
- public function simplePaginate($perPage = null, $columns = array('*'))
+ public function simplePaginate($perPage = 15, $columns = array('*'))
1790
{
1791
$paginator = $this->connection->getPaginator();
1792
1793
$page = $paginator->getCurrentPage();
1794
1795
- $perPage = $perPage ?: $this->model->getPerPage();
1796
-
1797
$this->skip(($page - 1) * $perPage)->take($perPage + 1);
1798
1799
return $paginator->make($this->get($columns), $perPage);
0 commit comments