From 5805fb05c165fb03dc36bd7a71889c46eb0436a5 Mon Sep 17 00:00:00 2001 From: Fede Isas Date: Mon, 19 Apr 2021 02:32:23 -0300 Subject: [PATCH] Synced method add $model for context --- src/AttachMany.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AttachMany.php b/src/AttachMany.php index 0a13101..ed67b4f 100644 --- a/src/AttachMany.php +++ b/src/AttachMany.php @@ -74,7 +74,7 @@ public function __construct($name, $attribute = null, $resource = null) $parent = $request->newResource(); if (method_exists($parent, $method)) { - $parent->{$method}($changes); + $parent->{$method}($changes, $model); } });