@@ -110,6 +110,18 @@ public function orWhereNotBoolean($column, bool $value): static
110
110
return $ this ->orWhere ($ column , '!= ' , new Expression (var_export ($ value , true )));
111
111
}
112
112
113
+ /**
114
+ * Add an "or where not like" clause to the query.
115
+ *
116
+ * @param Expression|string $column
117
+ * @param Expression|string $value
118
+ * @param bool $caseSensitive
119
+ */
120
+ public function orWhereNotLike ($ column , $ value , $ caseSensitive = false ): static
121
+ {
122
+ return $ this ->whereNotLike ($ column , $ value , $ caseSensitive , 'or ' );
123
+ }
124
+
113
125
/**
114
126
* Add a where all statement to the query.
115
127
*
@@ -178,7 +190,7 @@ public function whereIntegerArrayMatches($column, string $query): static
178
190
}
179
191
180
192
/**
181
- * Add a "where month " statement to the query.
193
+ * Add a "where like " statement to the query.
182
194
*
183
195
* @param Expression|string $column
184
196
* @param Expression|string $value
@@ -235,4 +247,17 @@ public function whereNotBoolean($column, bool $value): static
235
247
{
236
248
return $ this ->where ($ column , '!= ' , new Expression (var_export ($ value , true )));
237
249
}
250
+
251
+ /**
252
+ * Add a "where not like" statement to the query.
253
+ *
254
+ * @param Expression|string $column
255
+ * @param Expression|string $value
256
+ * @param bool $caseSensitive
257
+ * @param string $boolean
258
+ */
259
+ public function whereNotLike ($ column , $ value , $ caseSensitive = false , $ boolean = 'and ' ): static
260
+ {
261
+ return $ this ->whereLike ($ column , $ value , $ caseSensitive , $ boolean , true );
262
+ }
238
263
}
0 commit comments