Hello !
I have a form that uploads an image inside a custom disk which have been configured in the filesystems.php:
filesystems.php
'disks' => [
...
'ranks' => [
'driver' => 'local',
'root' => storage_path('app/public/ranks'),
'visibility' => 'public',
],
...
],
When I want to access to my file url, I'm doing this:
return Storage::disk('ranks')->url($this->name); //$this->name is the filename
It works not bad, it's returning me "/storage/myfile.ext" but I'm expecting to have "/storage/app/public/ranks/myfile.ext".
I can read on documentation:
Note: When using the local driver, be sure to create a symbolic link at public/storage which points to the storage/app/public directory.
But even after this I got this issue, where did I wrong ?
Thanks for help