File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -532,6 +532,20 @@ The `whereNotBetween` method verifies that a column's value lies outside of two
532
532
->whereNotBetween('votes', [1, 100])
533
533
->get();
534
534
535
+ ** whereBetweenColumns / whereNotBetweenColumns / orWhereBetweenColumns / orWhereNotBetweenColumns**
536
+
537
+ The ` whereBetweenColumns ` method verifies that a column's value is between the two values of two columns in the same table row:
538
+
539
+ $patients = DB::table('patients')
540
+ ->whereBetweenColumns('weight', ['minimum_allowed_weight', 'maximum_allowed_weight'])
541
+ ->get();
542
+
543
+ The ` whereNotBetweenColumns ` method verifies that a column's value lies outside the two values of two columns in the same table row:
544
+
545
+ $patients = DB::table('patients')
546
+ ->whereNotBetweenColumns('weight', ['minimum_allowed_weight', 'maximum_allowed_weight'])
547
+ ->get();
548
+
535
549
** whereIn / whereNotIn / orWhereIn / orWhereNotIn**
536
550
537
551
The ` whereIn ` method verifies that a given column's value is contained within the given array:
You can’t perform that action at this time.
0 commit comments