Merge pull request #846 from tobsn/patch-6

fixed link for query builder
This commit is contained in:
Dayle Rees 2012-06-22 08:35:27 -07:00
commit 6415f1d2ac
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ ## Retrieving Models
echo $user->email;
}
Of course, retrieving an entire table isn't very helpful. Thankfully, **every method that is available through the fluent query builder is available in Eloquent**. Just begin querying your model with a static call to one of the [query builder](/docs/database/query) methods, and execute the query using the **get** or **first** method. The get method will return an array of models, while the first method will return a single model:
Of course, retrieving an entire table isn't very helpful. Thankfully, **every method that is available through the fluent query builder is available in Eloquent**. Just begin querying your model with a static call to one of the [query builder](/docs/database/fluent) methods, and execute the query using the **get** or **first** method. The get method will return an array of models, while the first method will return a single model:
$user = User::where('email', '=', $email)->first();