Skip to content

Commit 86fc8a1

Browse files
author
Ivan Zazueta
authored
Add between operator
* We need this to use the operator in a having clause. * On Laravel 5.5, this operator was removed by laravel#22182 * On Laravel 5.7 there is a new havingBetween method that we can use instead laravel#26758
1 parent 51def2e commit 86fc8a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class Builder
178178
*/
179179
public $operators = [
180180
'=', '<', '>', '<=', '>=', '<>', '!=', '<=>',
181-
'like', 'like binary', 'not like', 'ilike',
181+
'like', 'like binary', 'not like', 'ilike', 'between',
182182
'&', '|', '^', '<<', '>>',
183183
'rlike', 'regexp', 'not regexp',
184184
'~', '~*', '!~', '!~*', 'similar to',

0 commit comments

Comments
 (0)