From 33739f9887413f9855fb93a04211009256d5d904 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 22 Feb 2018 13:20:38 -0600 Subject: [PATCH] fix orWhereDate --- src/Illuminate/Database/Query/Builder.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Illuminate/Database/Query/Builder.php b/src/Illuminate/Database/Query/Builder.php index 623c241871a8..40b6b5c78e65 100755 --- a/src/Illuminate/Database/Query/Builder.php +++ b/src/Illuminate/Database/Query/Builder.php @@ -989,6 +989,10 @@ public function whereDate($column, $operator, $value = null, $boolean = 'and') */ public function orWhereDate($column, $operator, $value) { + list($value, $operator) = $this->prepareValueAndOperator( + $value, $operator, func_num_args() == 2 + ); + return $this->whereDate($column, $operator, $value, 'or'); } @@ -1020,6 +1024,10 @@ public function whereTime($column, $operator, $value = null, $boolean = 'and') */ public function orWhereTime($column, $operator, $value = null) { + list($value, $operator) = $this->prepareValueAndOperator( + $value, $operator, func_num_args() == 2 + ); + return $this->whereTime($column, $operator, $value, 'or'); }