Why does my Blade template render the literal text {{ $var }} instead of the value? #28
Answered
by
Kevinchamplin
Kevinchamplin
asked this question in
Q&A
-
|
Why does my Blade template render the literal text {{ $var }} instead of the value? |
Beta Was this translation helpful? Give feedback.
Answered by
Kevinchamplin
Jun 13, 2026
Replies: 1 comment
-
|
A |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kevinchamplin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A
@immediately before{{triggers Blade's directive-escape (the 'leave this for a JS framework' syntax), so it prints the braces literally. @@ doesn't save you either. Move the @ inside the echo so it's just concatenation: {{ '@'.$var }}.