diff --git a/src/Concerns/HandlesStandardBatchOperations.php b/src/Concerns/HandlesStandardBatchOperations.php index 2eb63b35..9dd40f5f 100644 --- a/src/Concerns/HandlesStandardBatchOperations.php +++ b/src/Concerns/HandlesStandardBatchOperations.php @@ -89,7 +89,7 @@ public function batchUpdate(Request $request) $this->beforeSave($request, $entity); $this->performUpdate( - $request, $entity, $request->input("resources.{$entity->getKey()}") + $request, $entity, $request->input("resources.{$entity->{$this->keyName()}}") ); $entity = $entity->fresh($requestedRelations); @@ -399,4 +399,4 @@ protected function afterBatchRestore(Request $request, Collection $entities) { return null; } -} \ No newline at end of file +}