'why am I not able to make an image of a folder appear in html? and I get syntax errorr

when I try to run this code to fetch an image from a folder I find this error "syntax error, unexpected identifier "assets", expecting ")" but I don't understand



Solution 1:[1]

Instead of {{url()}} use {{asset()}}.

<img width="250" src="{{asset('assets/images/logo.png')}}" alt="#" />

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Noah Broyles