Skip to content

Commit 5e3236f

Browse files
committed
Update README
1 parent db78702 commit 5e3236f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ $model->delete();
9090
$model->where('key', 'key value')->get();
9191
9292
$model->where(['key' => 'key value']);
93+
9394
// Chainable for 'AND'.
9495
$model->where('foo', 'bar')
9596
->where('foo2', '!=' 'bar2')
@@ -99,8 +100,15 @@ $model->where('foo', 'bar')
99100
$model->where('foo', 'bar')
100101
->orWhere('foo2', '!=' 'bar2')
101102
->get();
102-
$model->where('count', 'between', [0, 100])->get();
103+
104+
// Other types of conditions
103105
$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();
104112
$model->where('description', 'begins_with', 'foo')->get();
105113
$model->where('description', 'contains', 'foo')->get();
106114
$model->where('description', 'not_contains', 'foo')->get();

0 commit comments

Comments
 (0)