File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -875,6 +875,24 @@ $patients = DB::table('patients')
875
875
->get();
876
876
```
877
877
878
+ ** whereValueBetween / whereValueNotBetween / orWhereValueBetween / orWhereValueNotBetween**
879
+
880
+ The ` whereValueBetween ` method verifies that a given value is between the values of two columns of the same type in the same table row:
881
+
882
+ ``` php
883
+ $patients = DB::table('products')
884
+ ->whereValueBetween(100, ['min_price', 'max_price'])
885
+ ->get();
886
+ ```
887
+
888
+ The ` whereValueNotBetween ` method verifies that a value lies outside the values of two columns in the same table row:
889
+
890
+ ``` php
891
+ $patients = DB::table('products')
892
+ ->whereValueNotBetween(100, ['min_price', 'max_price'])
893
+ ->get();
894
+ ```
895
+
878
896
** whereNull / whereNotNull / orWhereNull / orWhereNotNull**
879
897
880
898
The ` whereNull ` method verifies that the value of the given column is ` NULL ` :
You can’t perform that action at this time.
0 commit comments