I would say that the starting path (http://localhost) is taken from the config/app.php
'url' => 'http://localhost'
so you could use .env add variable like APP_URL and then add env('APP_URL', 'http://localhost') to that app.php file.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
The profile photos don't show.
I have executed ´php artisan storage:link` and the permissions are readable for everyone on my /storage/app/public/profiles directory and inside this directory the profile photos do exist.
If I inspect the HTML in Google Chrome, I am seeing this HTML: http://localhost/storage/profiles/zCbQYwL9ivnnDEHNn60TJJm7OKDDDi0G1lTPNOh6.png
However, I am running spark on my local MAMP installation at http://spark-test-6:8081.
If I open http://spark-test-6:8081/storage/profiles/zCbQYwL9ivnnDEHNn60TJJm7OKDDDi0G1lTPNOh6.png the profile photo is correctly displayed.
Obviously, Spark generates a wrong path. How can I fix this?
Thanks,
I would say that the starting path (http://localhost) is taken from the config/app.php
'url' => 'http://localhost'
so you could use .env add variable like APP_URL and then add env('APP_URL', 'http://localhost') to that app.php file.
Please or to participate in this conversation.