laravel/framework — pull request #3278 by Anahkiasen (2014-01-17 13:02:15+00:00)
Title: Make Paginator decorate Collection methods

Right now when obtaining a result from Eloquent queries – apart from aggregates like `sum` and such – return either an `Eloquent\Collection` or a `Paginator` instance.

When the class making use of these results has no knowledge of the logic behind the query, it's hard to work consistently with the output because you can't trust what methods will be available. This pull requests makes Paginator delegate unknown methods to the underlying Collection instance so that you can work consistently with query results without having to check for instances of Paginator beforehand.