diff --git a/docs/en/docs/attachments.md b/docs/en/docs/attachments.md index 703574647..72a4a6485 100644 --- a/docs/en/docs/attachments.md +++ b/docs/en/docs/attachments.md @@ -121,7 +121,7 @@ When you have multiple attachments, you should use `attachment` relation from th public function deleting(Post $post) { //load attachment as collection and not query attachment() - $post->attachment->each->delete(); + $post->attachment()->delete(); } ```