Skip to content

Commit b2e00b6

Browse files
committed
fix: docs for fields
1 parent 1d7370b commit b2e00b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs-v2/content/en/api/fields.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ class AttachPostFileRestifyAction extends Action
315315
{
316316
public function handle(RestifyRequest $request, Post $post): void
317317
{
318-
$post->addMediaFromRequest('file');
318+
$post->addMediaFromRequest('file')
319+
->toMediaCollection();
319320
}
320321
}
321322
```

0 commit comments

Comments
 (0)