Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Commit 8ec62d9

Browse files
authored
Merge pull request #12 from Saritasa/bug/#11-fix-comparing-carbon-objects
Add comparing carbon date as timestamp instead date #11
2 parents 7b050c3 + 0f5a68a commit 8ec62d9

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/Repositories/Repository.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,6 @@ protected function getNestedWhereConditions(QueryBuilder $builder, array $criter
420420
$subQuery->whereNotIn($criterion->attribute, $criterion->value, $criterion->boolean);
421421
break;
422422
default:
423-
if ($criterion->value instanceof Carbon) {
424-
$subQuery->whereDate(
425-
$criterion->attribute,
426-
$criterion->operator,
427-
$criterion->value,
428-
$criterion->boolean
429-
);
430-
break;
431-
}
432423
$subQuery->where(
433424
$criterion->attribute,
434425
$criterion->operator,

0 commit comments

Comments
 (0)