diff --git a/src/Laravel/src/Fields/Relationships/HasMany.php b/src/Laravel/src/Fields/Relationships/HasMany.php index b20c10365..9e12973a9 100644 --- a/src/Laravel/src/Fields/Relationships/HasMany.php +++ b/src/Laravel/src/Fields/Relationships/HasMany.php @@ -347,7 +347,7 @@ protected function getTablePreview(): TableBuilderContract ->disableSaveQueryState(); // If the records are already in memory (eager load) and there is no modifier, then we take the records from memory - if(\is_null($this->modifyBuilder) && $this->getRelatedModel()?->relationLoaded($this->getRelationName()) === true) { + if (\is_null($this->modifyBuilder) && $this->getRelatedModel()?->relationLoaded($this->getRelationName()) === true) { $items = $this->toRelatedCollection(); } else { $resource->disableQueryFeatures();