Commit e0dfd7c5 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1502 from olivervogel/develop

added lists() method to the fluent documentation
parents 6c3c297c 3e4eb5fc
......@@ -54,6 +54,12 @@ You now have a fluent query builder for the "users" table. Using this query buil
$user = DB::table('users')->get(array('id', 'email as user_email'));
#### Retrieving an array with the values of a given column:
$users = DB::table('users')->take(10)->lists('email', 'id');
> **Note:** Second parameter is optional
#### Selecting distinct results from the database:
$user = DB::table('users')->distinct()->get();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment