Skip to content

Commit

Permalink
Merge branch '7.x' of github.com:BinarCode/laravel-restify into 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk committed Feb 12, 2023
2 parents 2c03b59 + c994bfa commit 95c2436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/BelongsToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function resolve($repository, $attribute = null)
->withPivots(
PivotsCollection::make($this->pivotFields)
->map(fn (Field $field) => clone $field)
->filter(fn (Field $field) => !$field->isHidden(app(RestifyRequest::class)))
->filter(fn (Field $field) => ! $field->isHidden(app(RestifyRequest::class)))
->resolveFromPivot($item->pivot)
)
->eager($this);
Expand Down

0 comments on commit 95c2436

Please sign in to comment.