Skip to content

Commit d6c1a60

Browse files
committed
fix
1 parent ef51df8 commit d6c1a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fields/BelongsToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function toCreate(Request $request, Model $model): array
316316

317317
$pivot->setRelation('related', $relation->make());
318318

319-
return array_merge($this->toSubResource($request, $model), [
319+
return array_merge(parent::toCreate($request, $model), [
320320
'title' => __('Attach :model', ['model' => $this->getRelatedName()]),
321321
'model' => $pivot,
322322
'action' => $this->modelUrl($model),

0 commit comments

Comments
 (0)