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'); }