From dac4426c718648b723ccf20ba2c07bbb0ac98aea Mon Sep 17 00:00:00 2001 From: Ozan Kurt Date: Mon, 18 Sep 2023 18:04:41 +0200 Subject: [PATCH] Update Helper.php --- src/Utilities/Helper.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Utilities/Helper.php b/src/Utilities/Helper.php index 956374d4..a700239e 100644 --- a/src/Utilities/Helper.php +++ b/src/Utilities/Helper.php @@ -109,6 +109,13 @@ public static function compileContent($content, array $data, array|object $param return $content($param); } + + + if (is_array($content)) { + [$view, $viewData] = $content; + + return static::compileBlade($view, static::getMixedValue($data, $param) + $viewData); + } return $content; }