From 3e8fd7de9309263eac4889da9c3047a9690159e5 Mon Sep 17 00:00:00 2001 From: Timur <42815774+TimurTurdyev@users.noreply.github.com> Date: Tue, 18 Jan 2022 18:07:23 +0300 Subject: [PATCH] Undefined property MorphToMany::$each Undefined property: Illuminate\Database\Eloquent\Relations\MorphToMany::$each --- docs/ru/docs/attachments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ru/docs/attachments.md b/docs/ru/docs/attachments.md index e60f1d44d..c120a7bf8 100644 --- a/docs/ru/docs/attachments.md +++ b/docs/ru/docs/attachments.md @@ -107,7 +107,7 @@ public function deleting(Post $post) ```php public function deleting(Post $post) { - $post->attachment()->each->delete(); + $post->attachment()->delete(); } ```