Skip to content

Commit

Permalink
Disable custom paginate function for Laravel 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
esser-emmerik committed Jun 15, 2015
1 parent ba23bd3 commit 0261e38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Corcel/PostBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ public function slug($slug)
* @param int $currentPage
* @return \Illuminate\Database\Eloquent\Collection
*/
/*
// Disable custom pagina function for Laravel 5.1 compatibility
public function paginate($perPage = 10, $currentPage = 1)
{
$skip = $currentPage * $perPage - $perPage;
return $this->skip($skip)->take($perPage)->get();
}
}*/
}

0 comments on commit 0261e38

Please sign in to comment.