Search code examples
phplaravellaravel-8laravel-9

Unclosed '(' does not match '}'


I'm trying to display an image on a laravel blade, but I'm having trouble displaying the $d["photo"] variable in the image address in the {{ url(' ') }}

codeerror


Solution

  • You have an error on the template, change the second line for this:

      <img src='{{ url('img/foto-pengurus/' . $d['foto']) }}' class="img-fluid" alt=''>