run
php artisan storage:link
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I know this topic was discussed many times and I've tried to solve it with all proposed methods but in vain(( I really need help! That is what I have:
APP_URL=http://ordimedia.test
filesystems.php
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
in database:
profile_photo_path: "profile-photos/h8rBIhx6bVHqUDqVqOSoc7NIgfYhW67hHN2sldLK.jpeg"
getProfilePhotoUrlAttribute() returns
profile_photo_url
=> "http://ordimedia.test/storage/profile-photos/h8rBIhx6bVHqUDqVqOSoc7NIgfYhW67hHN2sldLK.jpeg"
files are stored at
\storage\app\public\profile-photos
in view:
<img src="http://ordimedia.test/storage/profile-photos/h8rBIhx6bVHqUDqVqOSoc7NIgfYhW67hHN2sldLK.jpeg" >
And yes, I've done "php artisan storage:link" hundreds times, but the photo still not found
@fanisa if by any chance you are using homestead for development, have into consideration that the storage:link command must be run inside homestead console and not at your local console.
Remember to delete the storage folder that you've manually created under public before running storage:link again is this seems to be the problem
Please or to participate in this conversation.