ARTICLE AD BOX
I'm facing a "404 Not Found" issue with my images in a PHP project running on Laragon (Apache) and shared via Ngrok.
C:/laragon/www/IAKA_Tickets/ ├── app/ │ └── Views/ │ └── checkout.php <-- Image is called here └── public/ ├── index.php └── assets/ └── img/ └── logo.png <-- Image locationThe Problem: My index.php is inside the public folder. When I access the site via Ngrok (https://0c4b-41-221-207-31.ngrok-free.app), the page loads, but the image doesn't.
What I've tried:
<img src="assets/img/logo.png"> -> Returns 404. <img src="/public/assets/img/logo.png"> -> Returns 404.Checking my Config.php for BASE_URL, which is set to the Ngrok URL.
Relevant logs: Apache access log shows: GET /assets/img/logo.png HTTP/1.1" 404.
How can I correctly reference the public/assets folder from a view located in app/Views/ so it works both locally and via Ngrok?
