Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
@section('title', {{exampleVariable}})
How can I achieve the above?
I've searched around for an answer but haven't found anything relevant.
{{ }}
$exampleVariable
Just use:
@section('title', $exampleVariable)
instead.
{{ is just use to display variable, consider this as PHP echo method, and here you don't want to just echo variable value
{{
echo
Add a comment
You could either do this:
Or this:
@section('title') {{ $exampleVariable }} @endsection
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
{{ }}, and make sure to reference the variable correctly, like$exampleVariable