Skip to content

Commit f45330a

Browse files
committed
call render method on view when including in blade.
1 parent bcca8be commit f45330a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected static function compile_includes($value)
264264
{
265265
$pattern = static::matcher('include');
266266

267-
return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars()); ?>', $value);
267+
return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars())->render(); ?>', $value);
268268
}
269269

270270
/**

0 commit comments

Comments
 (0)