Skip to content

Commit 3806cdc

Browse files
authored
Merge pull request #12 from GodfreysDragon/migratePivotAttributePatch
2 parents b6a082c + 478b8c8 commit 3806cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Relations/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function migratePivotAttributes(Model $model)
4949
$pivotKey
5050
);
5151

52-
return $pivot;
52+
return $pivot ?? [];
5353
}
5454

5555
/**

0 commit comments

Comments
 (0)