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; }