Commit e29270f6 authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #487 from jasonlewis/patch-8

Includes use render to prevent WSOD
parents 9f1bd0ca 3d23303a
...@@ -264,7 +264,7 @@ class Blade { ...@@ -264,7 +264,7 @@ class Blade {
{ {
$pattern = static::matcher('include'); $pattern = static::matcher('include');
return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars()); ?>', $value); return preg_replace($pattern, '$1<?php echo view$2->with(get_defined_vars())->render(); ?>', $value);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment