Hello. I'm just starting to learn php, and maybe I have a stupid question:
- have a working project on Laravel, privyazan to the domain (e.g. app.domain.com)
- there is a second server, no domain, just a static IP (for example 126.96.36.199)
I copied the project to a new server, set up (changed the domain to the ip in the files .env .htaccess , poured a fresh dump of the database, set up Apache), and, apparently, all functions of the app work normally, except for images, links to which are stored in a mysql database.
Ie - all pages open and perform their functions flawlessly, the image of the background including the displayed as expected, but not user photos.
I checked in the database the format of the links, there are recorded only the name of the image file (image_123.png).
But if I open the page that contains this image, the picture is not loaded, and the reference image leads to the old domain (https://app.domain.com/blabla/blabla/img_123.png)
Please tell me where to look and what to change to the new server took a picture of yourself? (https://188.8.131.52/blabla/blabla/img_123.png)