Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
shehi authored Jan 14, 2020
1 parent abf69e4 commit 73ce6ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,9 +1151,9 @@ public function refresh()
);

$actualRelations = collect();
foreach ($this->relations as $relation) {
foreach ($this->relations as $key => $relation) {
if (!($relation instanceof Pivot)) {
$actualRelations->add($relation);
$actualRelations->put($key, $relation);
}
}

Expand Down

0 comments on commit 73ce6ea

Please sign in to comment.