Merge pull request #1700 from davedx/master
Documentation update for Fluent
This commit is contained in:
commit
e289bc4893
|
@ -76,6 +76,13 @@ ### where and or\_where
|
|||
->or_where('email', '=', 'example@gmail.com')
|
||||
->first();
|
||||
|
||||
To do the equivalent of an AND where, simply chain the query with another where:
|
||||
|
||||
return DB::table('users')
|
||||
->where('id', '=', 1)
|
||||
->where('activated', '=', 1)
|
||||
->first();
|
||||
|
||||
Of course, you are not limited to simply checking equality. You may also use **greater-than**, **less-than**, **not-equal**, and **like**:
|
||||
|
||||
return DB::table('users')
|
||||
|
|
Loading…
Reference in New Issue