1
I’m following the documentation to upload files to the folder storage
however the path that the function returns is not the same path in which the file was stored, see in the documentation:
$path = $request->photo->store('images');
The path returned to $path
is /home/usuario/pasta/projeto/images
and the file is stored in /home/usuario/pasta/projeto/app/storage/app/images
. The latter part "/app/storage/
" was defined by the file filesystem.php
inside the briefcase config
:
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],
...
],
How can I get the real path of the saved file?