A
A
an5432019-02-10 10:30:37
Laravel
an543, 2019-02-10 10:30:37

Laravel image path how to correct?

Good day everyone! I have all the pictures in the public\img folder, in the layout all links are img src="img/logo.png", but if you open /category/1 , then category/img/logo.png is added to the path and of course the picture does not display, if you write img src="{{ asset('img/logo.png') }}" then everything shows normally everywhere.
So all the same, how CORRECTLY to display pictures on the pages?
UPD: if correct: src="img/logo.png", then how to set the path to the image?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Lyskov, 2019-02-10
@an543

/img/logo.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question