laravel/framework — pull request #4088 by uzegonemad (2014-04-10 01:05:06+00:00)
Title: Add/fix support for distinct selects when using pagination

This adds/fixes the ability to use `select()->distinct()->paginate()`. Previously, the count would be off because the count query disregarded `distinct()`.

Fixes #3191