Skip to content

Commit

Permalink
Update Helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OzanKurt authored Sep 18, 2023
1 parent 9165711 commit dac4426
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Utilities/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dac4426

Please sign in to comment.