@@ -90,6 +90,7 @@ $model->delete();
90
90
$model -> where(' key' , ' key value' )-> get();
91
91
92
92
$model -> where([' key' => ' key value' ]);
93
+
93
94
// Chainable for ' AND' .
94
95
$model -> where(' foo' , ' bar' )
95
96
-> where(' foo2' , ' !=' ' bar2' )
@@ -99,8 +100,15 @@ $model->where('foo', 'bar')
99
100
$model -> where(' foo' , ' bar' )
100
101
-> orWhere(' foo2' , ' !=' ' bar2' )
101
102
->get ();
102
- $model -> where(' count' , ' between' , [0, 100])->get ();
103
+
104
+ // Other types of conditions
103
105
$model -> where(' count' , ' >' , 0)->get ();
106
+ $model -> where(' count' , ' >=' , 0)->get ();
107
+ $model -> where(' count' , ' <' , 0)->get ();
108
+ $model -> where(' count' , ' <=' , 0)->get ();
109
+ $model -> whereIn(' count' , [0, 100])->get ();
110
+ $model -> whereNotIn(' count' , [0, 100])->get ();
111
+ $model -> where(' count' , ' between' , [0, 100])->get ();
104
112
$model -> where(' description' , ' begins_with' , ' foo' )-> get();
105
113
$model -> where(' description' , ' contains' , ' foo' )-> get();
106
114
$model -> where(' description' , ' not_contains' , ' foo' )-> get();
0 commit comments