Parser error in Laravel 5.5

-1

In my view , welcome.blade.php I'm getting a parser error in the following HTML snippet:

<div class="single_service_left">
    <img src="{{ asset('images/flaticon4.png') }}" alt="" />
</div>

Until then it seems perfectly normal, but the following error is displayed:

  

Parse error: syntax error, unexpected '')); > "/ > ' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')'

And debugger points to the row that would be "parse" as follows;

<div class="single_service_left">
    <img src="<?php echo e(asset('images/flaticon4.png')); ?>" alt="" />
</div>

The PHP version I am using is 7.1

    
asked by anonymous 29.12.2017 / 21:12

1 answer

0

I found the problem; the same was generated by a syntax error that came from another imported component within the html in question.

As the laravel compiled everything into a single file it seemed that the error was from the file "X" but actually it was @include of other html.

    
14.03.2018 / 15:33