Skip to content

Commit dc3a112

Browse files
authored
Fix rendering column from blade file
Fix Issue #2062 Column with blade file is rendered by view() but it cannot be converted to json response. render() will return just HTML code. Also without render if we try to debug $data inside DT source by Log or var_dump it will result with "Allowed memory size of xxx bytes exhausted".
1 parent 0c5764b commit dc3a112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utilities/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public static function compileContent($content, array $data, $param)
7878
public static function compileBlade($str, $data = [])
7979
{
8080
if (view()->exists($str)) {
81-
return view($str, $data);
81+
return view($str, $data)->render();
8282
}
8383

8484
ob_start() && extract($data, EXTR_SKIP);

0 commit comments

Comments
 (0)