fix bug affecting using db::raw with eloquent.
This commit is contained in:
parent
791dbdebe7
commit
ddd6d44782
|
|
@ -158,6 +158,8 @@ public function query($sql, $bindings = array())
|
|||
if ($value instanceof Expression) unset($bindings[$key]);
|
||||
}
|
||||
|
||||
$bindings = array_values($bindings);
|
||||
|
||||
$sql = $this->transform($sql, $bindings);
|
||||
|
||||
$this->queries[] = compact('sql', 'bindings');
|
||||
|
|
|
|||
Loading…
Reference in New Issue