laravel/framework — pull request #1421 by brunogaspar (2013-05-27 18:10:46+00:00)
Title: Fix the Paginator getTo() method not returning the correect values

Currently if we have for example 3 items and we are paginating 2 items per page, the `getTo()` returns 4 on the second page, when it should return 3.

This PR should fix this issue!