Merge pull request #1282 from KarimQaderi/patch-2

ViewRenderEventManager send string template
This commit is contained in:
Jitendra Singh 2019-08-19 13:55:00 +05:30 committed by GitHub
commit 2ce5d52709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -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;
}
}
}