From 88fde3aa86cb493f239766c7e8a34a591ddd65c0 Mon Sep 17 00:00:00 2001 From: Ilia Smirnov Date: Thu, 22 Mar 2018 17:31:30 +0300 Subject: [PATCH] Fixed replicate() hook replicate(): $args attribute was forgotten when calling next hook --- src/Metable/Hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Metable/Hooks.php b/src/Metable/Hooks.php index 265974e..594a213 100644 --- a/src/Metable/Hooks.php +++ b/src/Metable/Hooks.php @@ -76,7 +76,7 @@ public function replicate() $copy->setRelation('metaAttributes', $metaAttributes); - return $next($copy); + return $next($copy, $args); }; }