From e7f13be6a5dd8c348243a5f5dce488359160937c Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 27 Feb 2018 08:01:55 -0600 Subject: [PATCH] fix orHaving --- src/Illuminate/Database/Query/Builder.php | 4 ++++ 1 file changed, 4 insertions(+) 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'); }