I encountered the following problem: I need to pass a link to the file in the backgroun-image. Данный файл лежит в папке storage/test/… The address for it is stored in the database in the form of May2024f4sOIqLjhYnhVNdNtxwM.png
Using the command below I don’t get what I need.
<div style="background-image: url({{url("$tt->image")}});
I get the following: url(https://laravel.l/testMay2024f4sOIqLjhYnhVNdNtxwM.png)
And this is not what is needed. But if you replace with / then everything works as it should. Please help.
Никита Буянов is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.