Skip to content

Commit 692f1f4

Browse files
authored
Merge pull request #4728 from Laravel-Backpack/fix-attribute-infering
2 parents 4a7aa73 + 2c6b924 commit 692f1f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/Library/CrudPanel/Traits/Relationships.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ private function modelMethodIsRelationship($model, $method)
368368
*/
369369
private function isAttributeInRelationString($relationString)
370370
{
371+
if (! str_contains($relationString, '.')) {
372+
return false;
373+
}
374+
371375
$parts = explode('.', $relationString);
372376

373377
$model = $this->model;

0 commit comments

Comments
 (0)