laravel/framework — pull request #3649 by KaneCohen (2014-02-22 10:06:31+00:00)
Title: Add cursor mode to Paginator and DB.

Continuation from #2876. Added `cursor()` method to Eloquent and Fluent.
Works the same way as paginator, except that it'll create Paginator instance in cursor mode (without knowing total number of items available).

Usage with Eloquent:
````php
// Will execute: SELECT * FROM users ORDER BY id LIMIT 0, 31;
$users = User::orderBy('id')->cursor(30);
````

And with Paginator:
````php
// On render will return Prev link (disabled) and Next link leading to page 2.
// First argument - items array, second argument - number of items per page. Total will be set to null.
$pager = Paginator::make(['foo', 'bar', 'baz'], 2);
````

P.S.: Removed several stray spaces in tests.