Skip to content

Commit 05ee128

Browse files
committed
Adding whereNot() as not native to Laravel 8
1 parent 4d446b5 commit 05ee128

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Query/Builder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,12 @@ public function whereTimestamp($column, $operator = null, $value = null, $boolea
403403
return $this;
404404
}
405405

406+
// Adding whereNot() as not native to Laravel 8
407+
public function whereNot($column, $value)
408+
{
409+
return $this->where($column, '!=', $value);
410+
}
411+
406412

407413
//----------------------------------------------------------------------
408414
// Query Processing (Connection API)

0 commit comments

Comments
 (0)