Commit e289bc48 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #1700 from davedx/master

Documentation update for Fluent
parents 7fe61b74 43afc7b9
...@@ -76,6 +76,13 @@ There are a variety of methods to assist you in building where clauses. The most ...@@ -76,6 +76,13 @@ There are a variety of methods to assist you in building where clauses. The most
->or_where('email', '=', 'example@gmail.com') ->or_where('email', '=', 'example@gmail.com')
->first(); ->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**: 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') return DB::table('users')
......
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