Skip to content

Commit 274a79b

Browse files
committed
support for old Laravel versions
1 parent 45b7aa8 commit 274a79b

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/Query/BuilderWhere.php

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,18 @@ public function orWhereNotBoolean($column, bool $value): static
110110
return $this->orWhere($column, '!=', new Expression(var_export($value, true)));
111111
}
112112

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+
113125
/**
114126
* Add a where all statement to the query.
115127
*
@@ -178,7 +190,7 @@ public function whereIntegerArrayMatches($column, string $query): static
178190
}
179191

180192
/**
181-
* Add a "where month" statement to the query.
193+
* Add a "where like" statement to the query.
182194
*
183195
* @param Expression|string $column
184196
* @param Expression|string $value
@@ -235,4 +247,17 @@ public function whereNotBoolean($column, bool $value): static
235247
{
236248
return $this->where($column, '!=', new Expression(var_export($value, true)));
237249
}
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+
}
238263
}

0 commit comments

Comments
 (0)