@@ -1047,6 +1047,23 @@ public function whereDay($column, $operator, $value = null, $boolean = 'and')
1047
1047
return $ this ->addDateBasedWhere ('Day ' , $ column , $ operator , $ value , $ boolean );
1048
1048
}
1049
1049
1050
+ /**
1051
+ * Add an "or where day" statement to the query.
1052
+ *
1053
+ * @param string $column
1054
+ * @param string $operator
1055
+ * @param mixed $value
1056
+ * @return \Illuminate\Database\Query\Builder|static
1057
+ */
1058
+ public function orWhereDay ($ column , $ operator , $ value = null )
1059
+ {
1060
+ list ($ value , $ operator ) = $ this ->prepareValueAndOperator (
1061
+ $ value , $ operator , func_num_args () == 2
1062
+ );
1063
+
1064
+ return $ this ->addDateBasedWhere ('Day ' , $ column , $ operator , $ value , 'or ' );
1065
+ }
1066
+
1050
1067
/**
1051
1068
* Add a "where month" statement to the query.
1052
1069
*
@@ -1065,6 +1082,23 @@ public function whereMonth($column, $operator, $value = null, $boolean = 'and')
1065
1082
return $ this ->addDateBasedWhere ('Month ' , $ column , $ operator , $ value , $ boolean );
1066
1083
}
1067
1084
1085
+ /**
1086
+ * Add an "or where month" statement to the query.
1087
+ *
1088
+ * @param string $column
1089
+ * @param string $operator
1090
+ * @param mixed $value
1091
+ * @return \Illuminate\Database\Query\Builder|static
1092
+ */
1093
+ public function orWhereMonth ($ column , $ operator , $ value = null )
1094
+ {
1095
+ list ($ value , $ operator ) = $ this ->prepareValueAndOperator (
1096
+ $ value , $ operator , func_num_args () == 2
1097
+ );
1098
+
1099
+ return $ this ->addDateBasedWhere ('Month ' , $ column , $ operator , $ value , 'or ' );
1100
+ }
1101
+
1068
1102
/**
1069
1103
* Add a "where year" statement to the query.
1070
1104
*
@@ -1083,6 +1117,23 @@ public function whereYear($column, $operator, $value = null, $boolean = 'and')
1083
1117
return $ this ->addDateBasedWhere ('Year ' , $ column , $ operator , $ value , $ boolean );
1084
1118
}
1085
1119
1120
+ /**
1121
+ * Add an "or where year" statement to the query.
1122
+ *
1123
+ * @param string $column
1124
+ * @param string $operator
1125
+ * @param mixed $value
1126
+ * @return \Illuminate\Database\Query\Builder|static
1127
+ */
1128
+ public function orWhereYear ($ column , $ operator , $ value = null )
1129
+ {
1130
+ list ($ value , $ operator ) = $ this ->prepareValueAndOperator (
1131
+ $ value , $ operator , func_num_args () == 2
1132
+ );
1133
+
1134
+ return $ this ->addDateBasedWhere ('Year ' , $ column , $ operator , $ value , 'or ' );
1135
+ }
1136
+
1086
1137
/**
1087
1138
* Add a date based (year, month, day, time) statement to the query.
1088
1139
*
0 commit comments