Skip to content

Commit

Permalink
Merge branch '1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Feb 12, 2022
2 parents dca4b25 + f856c3d commit 5e18b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public static function unserialize(array $payload): EloquentQueryBuilder
// global removed scopes.

return $model->registerGlobalScopes(
(new EloquentQueryBuilder(
$model->newEloquentBuilder(
Query::unserialize($payload['builder'])
))->setModel($model)
)->setModel($model)
)
->setEagerLoads(
collect($payload['model']['eager'])->map(function ($callback) {
Expand Down

0 comments on commit 5e18b54

Please sign in to comment.