dimanche 19 juillet 2020

Laravel custom path for img tag

Hellow.i see an image URL in some websites source like below:

<img src="/imageName.jpg">

in my project in laravel I code this like below:

<img src="">

but the result in the browser will be like this for src attribute of img tag:

src="127.0.0.1:8000/public/img/imageName.jpg"

I want to turn it to something like this: src="/imageName.jpg" thanks



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2WziaNf
via IFTTT

Aucun commentaire:

Enregistrer un commentaire