From 3fa175c429294252cae77332e0e9fd9c3ce5ff9d Mon Sep 17 00:00:00 2001 From: Jon Erickson Date: Fri, 6 Sep 2024 21:28:49 -0600 Subject: [PATCH] Add missed key resolver statement --- src/Concerns/HandlesRelationStandardOperations.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Concerns/HandlesRelationStandardOperations.php b/src/Concerns/HandlesRelationStandardOperations.php index 1185ba0..a01dd4d 100644 --- a/src/Concerns/HandlesRelationStandardOperations.php +++ b/src/Concerns/HandlesRelationStandardOperations.php @@ -257,11 +257,13 @@ public function search(Request $request, $parentKey) * Create new relation resource. * * @param Request $request - * @param int|string $parentKey + * @param array $args * @return Resource */ - public function store(Request $request, $parentKey) + public function store(Request $request, ...$args) { + $parentKey = $this->keyResolver->resolveRelationOperationParentKey($request, $args); + try { $this->startTransaction(); $result = $this->storeWithTransaction($request, $parentKey);