Skip to content

Commit

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

Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 33739f9

Please sign in to comment.