Parser error in Laravel 5.5

Asked

Viewed 60 times

-1

In my view, welcome.blade.php I am 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 presented:

Parse error: syntax error, Unexpected '')))? >" alt="" />' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')'

And the debugger points to the line that would be "parsed" as follows;

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

The PHP version I’m using is 7.1

1 answer

0


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.