Skip to content

Commit

Permalink
fix orHaving
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 27, 2018
1 parent d980c21 commit e7f13be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit e7f13be

Please sign in to comment.