Skip to content

Commit 6183f01

Browse files
committed
Change EloquentAdapter to load relationships using load instead of loadMissing, as they may need API-specific scopes applied
1 parent 34f719e commit 6183f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/EloquentBuffer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function load(Model $model, string $relationName, Relationship $re
3434
return;
3535
}
3636

37-
Collection::make($models)->loadMissing([
37+
Collection::make($models)->load([
3838
$relationName => function ($relation) use ($model, $relationName, $relationship, $context) {
3939
$query = $relation->getQuery();
4040

0 commit comments

Comments
 (0)