I have two project or url
First url like this :
Second url like this :
If the second url, I run this :
<img src="{{ asset('img/$photo }}"/>
It will call url :
http://backend.myshop.dev/img/image1.jpg
It did not suit my needs
I want to take the image in the first url (http://myshop.dev/img/image1.jpg)
Both projects use the same database
How can I do it?
Add this to your .env
BACKEND_URL=http://backend.myshop.dev/public/
Call
<img src="{{ env('BACKEND_URL') . "{img/$photo}"}}"/>