Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Fix model-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 1, 2024
1 parent 94c3d8f commit 1d85f77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function dehydrate(EloquentCollection $target, $dehydrateChild)
$class = $target::class;

$modelClass = $target->getQueueableClass();
$modelKeys = array_map(fn ($model) => $model->getRouteKey(), $target->items);
$modelKeys = array_map(fn ($model) => $model->getRouteKey(), $target->all());

$meta = [];

Expand Down

0 comments on commit 1d85f77

Please sign in to comment.