diff --git a/src/Mixins/RelationshipsExtraMethods.php b/src/Mixins/RelationshipsExtraMethods.php index f697e8e..e40ffe0 100644 --- a/src/Mixins/RelationshipsExtraMethods.php +++ b/src/Mixins/RelationshipsExtraMethods.php @@ -530,7 +530,7 @@ public function applyNestedCondition() public function shouldNotApplyExtraCondition() { return function ($condition) { - if (isset($condition['column']) && Str::endsWith($condition['column'], '.')) { + if (isset($condition['column']) && ($condition['column'] === '' || Str::endsWith($condition['column'], '.'))) { return true; }