laravel/framework — pull request #2811 by dwightwatson (2013-11-27 00:57:42+00:00)
Title: Add unique() methods to Support and Eloquent collections to return only unique items

The unique method on Support\Collection uses the inbuilt PHP array functions while the method on Eloquent\Collection uses the `getKey()` method on Eloquent models to determine uniqueness. This works in much the same way as the `diff()`, `merge()` and `intersect()` functions I proposed earlier this week.

Tests included.