From 36226b99bcaa469579dd13692b4c172085f0748a Mon Sep 17 00:00:00 2001 From: Tobsn Date: Fri, 22 Jun 2012 03:09:50 -0700 Subject: [PATCH] fixed link for query builder /query -> /fluent thanks to @NXB --- laravel/documentation/database/eloquent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/documentation/database/eloquent.md b/laravel/documentation/database/eloquent.md index 0706b7d9..c2afc7a2 100644 --- a/laravel/documentation/database/eloquent.md +++ b/laravel/documentation/database/eloquent.md @@ -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();