Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 10, 2024
1 parent c0acb32 commit accf3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Database/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function loadAggregate($relations, $column, $function = null)
->whereKey($this->modelKeys())
->select($this->first()->getKeyName())
->withAggregate($relations, $column, $function);

$models = Model::withoutEvents(fn () => $models->get())
->keyBy($this->first()->getKeyName());

Expand Down

0 comments on commit accf3d9

Please sign in to comment.