fix bug affecting using db::raw with eloquent.
This commit is contained in:
@@ -158,6 +158,8 @@ class Connection {
|
|||||||
if ($value instanceof Expression) unset($bindings[$key]);
|
if ($value instanceof Expression) unset($bindings[$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$bindings = array_values($bindings);
|
||||||
|
|
||||||
$sql = $this->transform($sql, $bindings);
|
$sql = $this->transform($sql, $bindings);
|
||||||
|
|
||||||
$this->queries[] = compact('sql', 'bindings');
|
$this->queries[] = compact('sql', 'bindings');
|
||||||
|
|||||||
Reference in New Issue
Block a user