Merge pull request #1282 from KarimQaderi/patch-2
ViewRenderEventManager send string template
This commit is contained in:
commit
2ce5d52709
|
|
@ -77,13 +77,16 @@ class ViewRenderEventManager
|
|||
public function render()
|
||||
{
|
||||
$string = "";
|
||||
|
||||
|
||||
foreach ($this->templates as $template) {
|
||||
if (view()->exists($template)) {
|
||||
$string .= view($template, $this->params)->render();
|
||||
$string .= view($template , $this->params)->render();
|
||||
}
|
||||
elseif (is_string($template)) {
|
||||
$string .= $template;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue