all requests for example.com/storage/. are resolved by the folder at project/storage/app/public because of the symlink
if you are getting the same file at the URL example.com/uploads then you have an extra symlink that should not be there
Here's my config:
'public' => [
'driver' => 'local',
'root' => storage_path('app/public/uploads'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
My disk is set to this in the env. I have run php artisan storage:link.
When I upload an image it is stored under /storage/app/public/uploads/image.jpg.
I can access it from domain.localhost/storage/uploads/image.jpg and domain.localhost/uploads/image.jpg.
Why can it be accessed from two places?
Also - am I correct in thinking there is no physical file in the public directory as the directory is just linked?
all requests for example.com/storage/. are resolved by the folder at project/storage/app/public because of the symlink
if you are getting the same file at the URL example.com/uploads then you have an extra symlink that should not be there
Please or to participate in this conversation.