diff --git a/src/Eloquent/CustomRelations/RelationCleverTrait.php b/src/Eloquent/CustomRelations/RelationCleverTrait.php index d814fab..5ec614b 100644 --- a/src/Eloquent/CustomRelations/RelationCleverTrait.php +++ b/src/Eloquent/CustomRelations/RelationCleverTrait.php @@ -39,7 +39,7 @@ protected function setConstraintsStaticFlag(BaseModel $model): void { if ( '' === (string)RelationCleverTrait::$noConstraintsForRelationName - || '' === (string)$model->nowEagerLoadingRelationNameWithNoConstraints + && '' === (string)$model->nowEagerLoadingRelationNameWithNoConstraints ) { return; }