Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question