You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I could not find an existing issue, and I could not find that I'm using incorrect syntax. When I want to have a template rendered manually to output, in this case for an Ajax-request, I would assume the following would work:
$content = view('name-of-template')->render();
It does however not evaluate Blade-syntax like {{ 'Foo' }}. The $content contains the literal string {{ 'Foo' }}.
I did use a hacky way to get it rendered properly:
I could not find an existing issue, and I could not find that I'm using incorrect syntax. When I want to have a template rendered manually to output, in this case for an Ajax-request, I would assume the following would work:
It does however not evaluate Blade-syntax like
{{ 'Foo' }}
. The$content
contains the literal string{{ 'Foo' }}
.I did use a hacky way to get it rendered properly:
This seems however not exactly the best approach. Am I right in assuming ->render() should work in this situation?
The text was updated successfully, but these errors were encountered: