Home > Blockchain >  Problem set title on Laravel, there a sigh [" "]
Problem set title on Laravel, there a sigh [" "]

Time:07-17

I get the problem, when I try to set the title on blade.php

This is the code

@section('title')
    {{ $name }}
@endsection

The result

enter image description here

Why is there a sign [" "]? How to fix it?

CodePudding user response:

please check some typos around this code @yield('title') or show us related blade files

CodePudding user response:

you can use @section('title', $name)

  • Related