Commit 87e8dbeb authored by Taylor Otwell's avatar Taylor Otwell

refactoring database query class.

parent 454a5107
......@@ -208,7 +208,9 @@ class Query {
*/
public function where($column, $operator, $value, $connector = 'AND')
{
$this->wheres[] = array_merge(array('type' => 'where'), compact('column', 'operator', 'value', 'connector'));
$type = 'where';
$this->wheres[] = compact('type', 'column', 'operator', 'value', 'connector');
$this->bindings[] = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment