@@ -64,9 +64,9 @@ public function orWhereIntegerArrayMatches($column, string $query): static
64
64
* @param Expression|string $column
65
65
* @param Expression|string $value
66
66
*/
67
- public function orWhereLike ($ column , $ value , bool $ caseInsensitive = false ): static
67
+ public function orWhereLike ($ column , $ value , $ caseSensitive = false ): static
68
68
{
69
- return $ this ->whereLike ($ column , $ value , $ caseInsensitive , 'or ' );
69
+ return $ this ->whereLike ($ column , $ value , $ caseSensitive , 'or ' , false );
70
70
}
71
71
72
72
/**
@@ -183,11 +183,11 @@ public function whereIntegerArrayMatches($column, string $query): static
183
183
* @param Expression|string $value
184
184
* @param string $boolean
185
185
*/
186
- public function whereLike ($ column , $ value , bool $ caseInsensitive = false , $ boolean = 'and ' ): static
186
+ public function whereLike ($ column , $ value , $ caseSensitive = false , $ boolean = 'and ' , $ not = false ): static
187
187
{
188
188
$ type = 'like ' ;
189
189
190
- $ this ->wheres [] = compact ('type ' , 'column ' , 'value ' , 'caseInsensitive ' , 'boolean ' );
190
+ $ this ->wheres [] = compact ('type ' , 'column ' , 'value ' , 'caseSensitive ' , 'boolean ' , ' not ' );
191
191
$ this ->addBinding ($ value );
192
192
193
193
return $ this ;
0 commit comments