Skip to content

Commit 07b5b1a

Browse files
authored
Update BelongsToPopulator.php
1 parent 17b221c commit 07b5b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relation/BelongsToPopulator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function populate(Model $model, Relation $relation, ?array $data, string $relati
2121

2222
$this->fillRelationField($model, $relation, $related);
2323

24-
$model->setRelation(Str::snake($relationName)), $related);
24+
$model->setRelation(Str::snake($relationName), $related);
2525
}
2626

2727
protected function fillRelationField(Model $model, BelongsTo $relation, ?Model $related): void

0 commit comments

Comments
 (0)