Skip to content

Commit

Permalink
Add missed key resolver statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jonerickson committed Sep 7, 2024
1 parent 113d52f commit 3fa175c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Concerns/HandlesRelationStandardOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,13 @@ public function search(Request $request, $parentKey)
* Create new relation resource.
*
* @param Request $request
* @param int|string $parentKey
* @param array<int, mixed> $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);
Expand Down

0 comments on commit 3fa175c

Please sign in to comment.