diff --git a/src/Fields/HasMany.php b/src/Fields/HasMany.php index a4a5f7d0f..34ef44fa2 100644 --- a/src/Fields/HasMany.php +++ b/src/Fields/HasMany.php @@ -15,7 +15,7 @@ public function storeForParent(RestifyRequest $request, Model $parent): self if (is_callable($this->storeForParentCallback)) { call_user_func_array($this->storeForParentCallback, [ $request, - $parent + $parent, ]); return $this; @@ -41,4 +41,3 @@ public function storeForParentCallback(callable $callback) return $this; } } -