laravel/laravel — pull request #176 by jaysonic (2011-11-23 06:55:00+00:00)
Title: Specifying array of columns in Eloquent models

When using Eloquent it isn't possible to provide an array of columns in the all, find, get, first, and paginate methods.

The Fluent Query Builder allows this functionality.

This patch just adds that same functionality, taken straight from FQB.

Allows:

~~~~
return static::where('username', '=', 'jaysonic')->first(array('email', 'password'));
~~~~