diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 5391736b8676..2bbddfd066f9 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -1414,6 +1414,10 @@ public function having($column, $operator = null, $value = null, $boolean = 'and */ public function orHaving($column, $operator = null, $value = null) { + list($value, $operator) = $this->prepareValueAndOperator( + $value, $operator, func_num_args() == 2 + ); + return $this->having($column, $operator, $value, 'or'); }