call render method on view when including in blade.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user