ajout des conditions where in et where between
This commit is contained in:
@@ -86,6 +86,18 @@ class QueryBuilder
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function whereIn($condition, array $values)
|
||||
{
|
||||
$this->wheres[] = new Expression($condition, "in", $values);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function whereBetween($condition, $value1, $value2)
|
||||
{
|
||||
$this->wheres[] = new Expression($condition, "between", [$value1,$value2]);
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function where($condition, $operator, $value = null)
|
||||
{
|
||||
if ($value === null) {
|
||||
|
||||
Reference in New Issue
Block a user