Merge pull request #846 from tobsn/patch-6
fixed link for query builder
This commit is contained in:
commit
6415f1d2ac
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue